~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

Move all features to bzrlib.tests.features in 2.5

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