~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-05-14 10:40:39 UTC
  • mfrom: (4360.2.2 repo-source)
  • Revision ID: pqm@pqm.ubuntu.com-20090514104039-kggemn7lrretzpvc
(robertc) Fix bug 376225 by having PAR discard ghosts. (Robert
        Collins)

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):