/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: Jelmer Vernooij
  • Date: 2018-05-22 02:05:12 UTC
  • mto: (6973.12.2 python3-k)
  • mto: This revision was merged to the branch mainline in revision 6992.
  • Revision ID: jelmer@jelmer.uk-20180522020512-btpj2jchdlehi3en
Add more bees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
        tree_b.add('file')
228
228
        tree_b.commit('commit b-1', rev_id=b'b-1')
229
229
 
230
 
        self.assertTrue(shared_repo.has_revision('a-1'))
231
 
        self.assertTrue(shared_repo.has_revision('a-2'))
232
 
        self.assertTrue(shared_repo.has_revision('b-1'))
 
230
        self.assertTrue(shared_repo.has_revision(b'a-1'))
 
231
        self.assertTrue(shared_repo.has_revision(b'a-2'))
 
232
        self.assertTrue(shared_repo.has_revision(b'b-1'))
233
233
 
234
234
        # Now that we have a repository with shared files, make sure
235
235
        # that things aren't copied out by a 'branch'
236
236
        self.run_bzr('branch repo/b branch-b')
237
237
        pushed_tree = WorkingTree.open('branch-b')
238
238
        pushed_repo = pushed_tree.branch.repository
239
 
        self.assertFalse(pushed_repo.has_revision('a-1'))
240
 
        self.assertFalse(pushed_repo.has_revision('a-2'))
241
 
        self.assertTrue(pushed_repo.has_revision('b-1'))
 
239
        self.assertFalse(pushed_repo.has_revision(b'a-1'))
 
240
        self.assertFalse(pushed_repo.has_revision(b'a-2'))
 
241
        self.assertTrue(pushed_repo.has_revision(b'b-1'))
242
242
 
243
243
    def test_branch_hardlink(self):
244
244
        self.requireFeature(HardlinkFeature)