~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_known_graph_py.py

  • 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:
251
251
                             reverse=True)
252
252
            while pending:
253
253
                node = pending.pop()
254
 
                # TODO: test ghosts
255
 
                # if node.parent_keys is None:
256
 
                #     # Ghost node, skip it
257
 
                #     continue
 
254
                if node.parent_keys is None:
 
255
                    # Ghost node, skip it
 
256
                    continue
258
257
                result.append(node.key)
259
258
                for parent_key in sorted(node.parent_keys, reverse=True):
260
259
                    parent_node = self._nodes[parent_key]