/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-10 18:03:54 UTC
  • mfrom: (4913.4.4 get-known-graph-ancestry)
  • Revision ID: pqm@pqm.ubuntu.com-20100410180354-4dft6p3nf7fvg50f
(Jelmer) Add Repository.get_known_graph_ancestry().

Show diffs side-by-side

added added

removed removed

Lines of Context:
1685
1685
    def __init__(self, graph):
1686
1686
        self._graph = graph
1687
1687
 
 
1688
    def topo_sort(self):
 
1689
        return [r for (r,) in self._graph.topo_sort()]
 
1690
 
1688
1691
    def heads(self, ids):
1689
1692
        """See Graph.heads()"""
1690
1693
        as_keys = [(i,) for i in ids]
1691
1694
        head_keys = self._graph.heads(as_keys)
1692
1695
        return set([h[0] for h in head_keys])
1693
1696
 
 
1697
    def merge_sort(self, tip_revision):
 
1698
        return self._graph.merge_sort((tip_revision,))
 
1699
 
1694
1700
 
1695
1701
_counters = [0,0,0,0,0,0,0]
1696
1702
try: