~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Alexander Belchenko
  • Date: 2007-10-04 05:50:44 UTC
  • mfrom: (2881 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2884.
  • Revision ID: bialix@ukr.net-20071004055044-pb88kgkfayawro8n
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
            order if they need it.
232
232
        """
233
233
        candidate_heads = set(keys)
 
234
        if len(candidate_heads) < 2:
 
235
            return candidate_heads
234
236
        searchers = dict((c, self._make_breadth_first_searcher([c]))
235
237
                          for c in candidate_heads)
236
238
        active_searchers = dict(searchers)