/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/test_fetch_ghosts.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-06 11:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180506114854-h4qd9ojaqy8wxjsd
Move .mailmap to root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    def prepare_with_ghosts(self):
26
26
        tree = self.make_branch_and_tree('.')
27
27
        tree.commit('rev1', rev_id=b'rev1-id')
28
 
        tree.set_parent_ids([b'rev1-id', b'ghost-id'])
 
28
        tree.set_parent_ids(['rev1-id', 'ghost-id'])
29
29
        tree.commit('rev2')
30
30
        return tree
31
31
 
33
33
        tree = self.prepare_with_ghosts()
34
34
        branch = self.make_branch('branch')
35
35
        GhostFetcher(tree.branch, branch).run()
36
 
        self.assertFalse(tree.branch.repository.has_revision(b'ghost-id'))
 
36
        self.assertFalse(tree.branch.repository.has_revision('ghost-id'))
37
37
 
38
38
    def test_fetch_ghosts_success(self):
39
39
        tree = self.prepare_with_ghosts()
40
40
        ghost_tree = self.make_branch_and_tree('ghost_tree')
41
41
        ghost_tree.commit('ghost', rev_id=b'ghost-id')
42
42
        GhostFetcher(tree.branch, ghost_tree.branch).run()
43
 
        self.assertTrue(tree.branch.repository.has_revision(b'ghost-id'))
 
43
        self.assertTrue(tree.branch.repository.has_revision('ghost-id'))