/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-03-24 17:48:04 UTC
  • mfrom: (6921 work)
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180324174804-xf22o05byoj12x1q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
    def prepare_with_ghosts(self):
26
26
        tree = self.make_branch_and_tree('.')
27
 
        tree.commit('rev1', rev_id=b'rev1-id')
 
27
        tree.commit('rev1', rev_id='rev1-id')
28
28
        tree.set_parent_ids(['rev1-id', 'ghost-id'])
29
29
        tree.commit('rev2')
30
30
        return tree
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
 
        ghost_tree.commit('ghost', rev_id=b'ghost-id')
 
41
        ghost_tree.commit('ghost', rev_id='ghost-id')
42
42
        GhostFetcher(tree.branch, ghost_tree.branch).run()
43
43
        self.assertTrue(tree.branch.repository.has_revision('ghost-id'))