~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-25 00:35:35 UTC
  • mto: This revision was merged to the branch mainline in revision 3407.
  • Revision ID: john@arbash-meinel.com-20080425003535-l6a6okvcdhn8f2sj
Found a graph leak.

Needed set.update() rather than set =
The results were still correct, but it would generally cause
a large leak into the rest of the graph.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1102
1102
        self.assertFindUniqueAncestors(graph, ['h'], 'h', ['i'])
1103
1103
        self.assertFindUniqueAncestors(graph, ['e', 'g', 'i'], 'i', ['h'])
1104
1104
 
 
1105
        self.assertFindUniqueAncestors(graph, ['h'], 'h', ['j'])
 
1106
 
1105
1107
    def test_in_ancestry(self):
1106
1108
        graph = self.make_graph(ancestry_1)
1107
1109
        self.assertFindUniqueAncestors(graph, [], 'rev1', ['rev3'])