~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: John Arbash Meinel
  • Date: 2008-04-25 20:51:50 UTC
  • mto: This revision was merged to the branch mainline in revision 3407.
  • Revision ID: john@arbash-meinel.com-20080425205150-zsytbcx0nol0bilw
Add a test that exercises the multiple interesting unique code

The previous tests never entered the second loop, because they only had
a single interesting graph path. Still missing some tests, though
everything passes for bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
322
322
            for searcher in unique_searchers:
323
323
                unique_are_common_nodes = unique_are_common_nodes.intersection(
324
324
                                            searcher.seen)
325
 
            # XXX: This needs a test
326
 
            #      It is triggered when you have lots of unique nodes, and
327
 
            #      some of them converge before the others.
 
325
            # TODO: This needs a test case
 
326
            #       It is triggered when you have lots of unique nodes, and
 
327
            #       some of them converge before the others.
328
328
            unique_are_common_nodes = unique_are_common_nodes.intersection(
329
329
                                        all_unique_searcher.seen)
330
330
            unique_are_common_nodes.update(all_unique_searcher.step())