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

  • Committer: Andrew Bennetts
  • Date: 2009-06-17 02:02:44 UTC
  • mfrom: (4449 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4452.
  • Revision ID: andrew.bennetts@canonical.com-20090617020244-50aantdf95aakvjx
Merge bzr.dev, resolving NEWS conflict.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        result.report_results(verbose=True)
68
68
        result.report_results(verbose=False)
69
69
 
 
70
    def test_check_detects_ghosts_in_mainline(self):
 
71
        tree = self.make_branch_and_tree('test')
 
72
        tree.set_parent_ids(['thisisaghost'], allow_leftmost_as_ghost=True)
 
73
        r1 = tree.commit('one')
 
74
        r2 = tree.commit('two')
 
75
        result = tree.branch.check()
 
76
        self.assertEquals(True, result.ghosts_in_mainline)
70
77