/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/_known_graph_pyx.pyx

  • Committer: John Arbash Meinel
  • Date: 2009-08-25 18:45:40 UTC
  • mto: (4634.6.15 2.0)
  • mto: This revision was merged to the branch mainline in revision 4667.
  • Revision ID: john@arbash-meinel.com-20090825184540-6dn3xjq62xhgj2gq
Add support for skipping ghost nodes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
473
473
            pending = _sort_list_nodes(nodes, 1)
474
474
            while pending:
475
475
                node = pending.pop()
476
 
                # TODO: test ghosts
477
 
                # if node.parent_keys is None:
478
 
                #     # Ghost node, skip it
479
 
                #     continue
 
476
                if node.parents is None:
 
477
                    continue
480
478
                result.append(node.key)
481
479
                parents = _sort_list_nodes(list(node.parents), 1)
482
480
                for pos from 0 <= pos < PyList_GET_SIZE(parents):