~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Robert Collins
  • Date: 2009-05-14 05:46:14 UTC
  • mto: This revision was merged to the branch mainline in revision 4362.
  • Revision ID: robertc@robertcollins.net-20090514054614-om3zdqkpaxs52b0l
Don't return ghosts in the keyset for PendingAncestryResult.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1556
1556
    def _get_keys(self, graph):
1557
1557
        NULL_REVISION = revision.NULL_REVISION
1558
1558
        keys = [key for (key, parents) in graph.iter_ancestry(self.heads)
1559
 
                if key != NULL_REVISION]
 
1559
                if key != NULL_REVISION and parents is not None]
1560
1560
        return keys
1561
1561
 
1562
1562
    def is_empty(self):