~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_graph.py

  • Committer: John Arbash Meinel
  • Date: 2008-04-24 23:36:49 UTC
  • mto: This revision was merged to the branch mainline in revision 3407.
  • Revision ID: john@arbash-meinel.com-20080424233649-xyyjic178u9zuidd
A few more minimal ancestry checks

Show diffs side-by-side

added added

removed removed

Lines of Context:
1093
1093
                                         [NULL_REVISION, 'a', 'b'])
1094
1094
        self.assertFindUniqueAncestors(graph, ['e'], 'e', ['d'])
1095
1095
 
 
1096
        graph = self.make_breaking_graph(extended_history_shortcut,
 
1097
                                         ['b'])
 
1098
        self.assertFindUniqueAncestors(graph, ['f'], 'f', ['a', 'd'])
 
1099
 
 
1100
        graph = self.make_breaking_graph(complex_shortcut,
 
1101
                                         ['a', 'b', 'c'])
 
1102
        self.assertFindUniqueAncestors(graph, ['h'], 'h', ['i'])
 
1103
        self.assertFindUniqueAncestors(graph, ['e', 'g', 'i'], 'i', ['h'])
 
1104
 
1096
1105
    def test_in_ancestry(self):
1097
1106
        graph = self.make_graph(ancestry_1)
1098
1107
        self.assertFindUniqueAncestors(graph, [], 'rev1', ['rev3'])