~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testgraph.py

  • Committer: Aaron Bentley
  • Date: 2005-09-10 22:55:35 UTC
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: aaron.bentley@utoronto.ca-20050910225535-3660c70bf335c618
Handled ancestors that are missing when finding a base

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        self.edge_add('A', 'E', 'F', 'C')
35
35
        self.edge_add('A', 'G', 'H', 'I', 'B')
36
36
        self.edge_add('A', 'J', 'K', 'L', 'M', 'N')
37
 
        descendants = {}
 
37
        self.edge_add('O', 'N')
 
38
        descendants = {'A':set()}
38
39
        for node in self.graph:
39
40
            for ancestor in self.graph[node]:
40
41
                if ancestor not in descendants: