~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Ian Clatworthy
  • Date: 2007-12-07 05:31:54 UTC
  • mto: (3092.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3093.
  • Revision ID: ian.clatworthy@internode.on.net-20071207053154-k9tmyczcf8niwonm
fix efficiency of local commit detection as recommended by jameinel's review

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
        """Determine whether a revision is an ancestor of another.
362
362
 
363
363
        We answer this using heads() as heads() has the logic to perform the
364
 
        smallest number of parent looksup to determine the ancestral
 
364
        smallest number of parent lookups to determine the ancestral
365
365
        relationship between N revisions.
366
366
        """
367
367
        return set([candidate_descendant]) == self.heads(