~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-06-18 13:57:17 UTC
  • mfrom: (5985 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5987.
  • Revision ID: jelmer@samba.org-20110618135717-wo0eadh0dydpbemc
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1002
1002
            raise AssertionError('_iter_for_revno returned too much history')
1003
1003
        return (True, partial_history[-1])
1004
1004
 
 
1005
    @symbol_versioning.deprecated_method(symbol_versioning.deprecated_in((2, 4, 0)))
1005
1006
    def iter_reverse_revision_history(self, revision_id):
1006
1007
        """Iterate backwards through revision ids in the lefthand history
1007
1008
 
1837
1838
        it is encountered, history extension will stop.
1838
1839
    """
1839
1840
    start_revision = partial_history_cache[-1]
1840
 
    iterator = repo.iter_reverse_revision_history(start_revision)
 
1841
    graph = repo.get_graph()
 
1842
    iterator = graph.iter_lefthand_ancestry(start_revision,
 
1843
        (_mod_revision.NULL_REVISION,))
1841
1844
    try:
1842
 
        #skip the last revision in the list
 
1845
        # skip the last revision in the list
1843
1846
        iterator.next()
1844
1847
        while True:
1845
1848
            if (stop_index is not None and