/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

Add a -b option to ''brz branch''.

Merged from https://code.launchpad.net/~jelmer/brz/flag-b/+merge/381552

Show diffs side-by-side

added added

removed removed

Lines of Context:
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')