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

  • Committer: John Arbash Meinel
  • Date: 2008-05-05 20:29:06 UTC
  • mto: This revision was merged to the branch mainline in revision 3407.
  • Revision ID: john@arbash-meinel.com-20080505202906-0utn8d1ti6458rea
Ian's review feedback

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
#     |/|/
235
235
#     t u
236
236
complex_shortcut2 = {'a':[NULL_REVISION], 'b':['a'], 'c':['b'], 'd':['c'],
237
 
                    'e':['d'], 'f':['e'],
238
 
                    'g':['f'], 'h':['d'], 'k':['h', 'i'], 'j':['h'],
239
 
                    'i':['g'], 'l':['k'], 'm':['l'],
240
 
                    'n':['m'], 't':['i', 's'], 'u':['s', 'j'],
241
 
                    'o':['n'], 'p':['o'], 'q':['p'],
242
 
                    'r':['q'], 's':['r'],
 
237
                    'e':['d'], 'f':['e'], 'g':['f'], 'h':['d'], 'i':['g'],
 
238
                    'j':['h'], 'k':['h', 'i'], 'l':['k'], 'm':['l'], 'n':['m'],
 
239
                    'o':['n'], 'p':['o'], 'q':['p'], 'r':['q'], 's':['r'],
 
240
                    't':['i', 's'], 'u':['s', 'j'], 
243
241
                    }
244
242
 
245
243
# Graph where different walkers will race to find the common and uncommon
410
408
        self.calls.extend(nodes)
411
409
        return self._real_parents_provider.get_parent_map(nodes)
412
410
 
413
 
    def get_parent_map(self, nodes):
414
 
        self.calls.extend(nodes)
415
 
        return self._real_parents_provider.get_parent_map(nodes)
416
 
 
417
411
 
418
412
class TestGraph(TestCaseWithMemoryTransport):
419
413
 
1230
1224
        graph = self.make_graph(racing_shortcuts)
1231
1225
        self.assertFindUniqueAncestors(graph,
1232
1226
            ['p', 'q', 'z'], 'z', ['y'])
1233
 
        import pdb; pdb.set_trace()
1234
1227
        self.assertFindUniqueAncestors(graph,
1235
1228
            ['h', 'i', 'j', 'y'], 'j', ['z'])
1236
1229