/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_branch.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-11 16:46:46 UTC
  • mfrom: (7512.1.1 drop-travis-appveyor)
  • Revision ID: breezy.the.bot@gmail.com-20200611164646-w4tufva3jchfv1mn
Drop appveyor + travis configuration.

Merged from https://code.launchpad.net/~jelmer/brz/drop-travis-appveyor/+merge/385578

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    HardlinkFeature,
39
39
    )
40
40
from breezy.tests.blackbox import test_switch
41
 
from breezy.tests.matchers import ContainsNoVfsCalls
 
41
from breezy.bzr.tests.matchers import ContainsNoVfsCalls
42
42
from breezy.tests.test_sftp_transport import TestCaseWithSFTPServer
43
43
from breezy.tests.script import run_script
44
44
from breezy.urlutils import local_path_to_url, strip_trailing_slash
107
107
        self.assertEqual('Branched 0 revisions.\n', err)
108
108
        self.assertPathExists('a')
109
109
 
 
110
    def test_from_name(self):
 
111
        """Branch from a colocated branch into a regular branch."""
 
112
        os.mkdir('b')
 
113
        tree = self.example_branch('b/a', format='development-colo')
 
114
        tree.controldir.create_branch(name='somecolo')
 
115
        out, err = self.run_bzr('branch -b somecolo %s' %
 
116
                                local_path_to_url('b/a'))
 
117
        self.assertEqual('', out)
 
118
        self.assertEqual('Branched 0 revisions.\n', err)
 
119
        self.assertPathExists('a')
 
120
 
110
121
    def test_branch_broken_pack(self):
111
122
        """branching with a corrupted pack file."""
112
123
        self.example_branch('a')