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

  • Committer: John Arbash Meinel
  • Date: 2008-04-22 20:10:19 UTC
  • mto: This revision was merged to the branch mainline in revision 3407.
  • Revision ID: john@arbash-meinel.com-20080422201019-lqfw2p8dic55an0e
Fix stupid ordering in find_seen_ancestors

Don't call stop_searching_any on all ancestors, call it on all of them 
after you have sorted it out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
853
853
        searcher = _BreadthFirstSearcher(revisions, self._parents_provider)
854
854
        seen_ancestors = set()
855
855
        for ancestors in searcher:
 
856
            stop_nodes = set()
856
857
            for ancestor in ancestors:
857
 
                stop_nodes = set()
858
858
                if ancestor not in self.seen:
859
859
                    stop_nodes.add(ancestor)
860
860
                else:
861
861
                    seen_ancestors.add(ancestor)
862
 
                searcher.stop_searching_any(stop_nodes)
 
862
            searcher.stop_searching_any(stop_nodes)
863
863
        return seen_ancestors
864
864
 
865
865
    def stop_searching_any(self, revisions):