~jteh/trac-bzr/newDeps

« back to all changes in this revision

Viewing changes to tracbzr/backend.py

  • Committer: James Teh
  • Date: 2013-04-08 01:38:44 UTC
  • Revision ID: jamie@jantrid.net-20130408013844-10m1fwa4eotq306w
Repository.iter_reverse_revision_history() was removed from bzr. Update code accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    revision,
88
88
    transport,
89
89
    urlutils,
90
 
    tsort,
91
90
)
92
91
import bzrlib.api
93
92
from bzrlib.revision import (
1488
1487
        """Lazily fill cache only when needed."""
1489
1488
        if self.revcache is None:
1490
1489
            revid = self.revisiontree.get_revision_id()
1491
 
            ancestry = tsort.topo_sort(
1492
 
                dict(self.branch.repository.get_graph().iter_ancestry([revid])))
 
1490
            ancestry = self.branch.repository.get_ancestry(revid)
1493
1491
            ancestry.reverse()
1494
1492
            ancestry_idx = dict((r, n) for n, r in enumerate(ancestry))
1495
1493
            self.revcache = {}