~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Martin Pool
  • Date: 2011-06-28 13:55:39 UTC
  • mfrom: (5995 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5996.
  • Revision ID: mbp@canonical.com-20110628135539-6541falwx39fl46i
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1980
1980
        return set([h[0] for h in head_keys])
1981
1981
 
1982
1982
    def merge_sort(self, tip_revision):
1983
 
        return self._graph.merge_sort((tip_revision,))
 
1983
        nodes = self._graph.merge_sort((tip_revision,))
 
1984
        for node in nodes:
 
1985
            node.key = node.key[0]
 
1986
        return nodes
1984
1987
 
1985
1988
    def add_node(self, revision, parents):
1986
1989
        self._graph.add_node((revision,), [(p,) for p in parents])