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

  • Committer: Michael Hudson
  • Date: 2008-02-26 23:04:15 UTC
  • mto: (3246.2.1 integration)
  • mto: This revision was merged to the branch mainline in revision 3253.
  • Revision ID: michael.hudson@canonical.com-20080226230415-iaecaj60fzthfzzi
test and fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
from bzrlib import errors
 
22
import bzrlib.revision
22
23
 
23
24
 
24
25
__all__ = ["topo_sort", "TopoSorter", "merge_sort", "MergeSorter"]
406
407
        self._left_subtree_pushed_stack = []
407
408
 
408
409
        # seed the search with the tip of the branch
409
 
        if branch_tip is not None:
 
410
        if (branch_tip is not None and
 
411
            branch_tip != bzrlib.revision.NULL_REVISION):
410
412
            parents = self._graph.pop(branch_tip)
411
413
            self._push_node(branch_tip, 0, parents)
412
414