/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 bzrlib/tests/branch_implementations/test_reconcile.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-08 14:37:25 UTC
  • mfrom: (4516 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4517.
  • Revision ID: john@arbash-meinel.com-20090708143725-sc9sjy3mz4cxwxzz
Merge bzr.dev 4516

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        a_branch = self.make_branch('a_branch')
71
71
        a_branch.reconcile(thorough=False)
72
72
        a_branch.reconcile(thorough=True)
 
73
 
 
74
    def test_reconcile_handles_ghosts_in_revhistory(self):
 
75
        tree = self.make_branch_and_tree('test')
 
76
        tree.set_parent_ids(["spooky"], allow_leftmost_as_ghost=True)
 
77
        r1 = tree.commit('one')
 
78
        r2 = tree.commit('two')
 
79
        tree.branch.set_last_revision_info(2, r2)
 
80
 
 
81
        reconciler = tree.branch.reconcile()
 
82
        self.assertEquals([r1, r2], tree.branch.revision_history())