~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Andrew Bennetts
  • Date: 2009-06-16 08:06:58 UTC
  • mto: This revision was merged to the branch mainline in revision 4446.
  • Revision ID: andrew.bennetts@canonical.com-20090616080658-ej18m1u773k55tsc
Fix test failures in test_lookup_revision_id_by_dotted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
867
867
            raise errors.NoSuchRevision(self, revno)
868
868
        distance_from_last = last_revno - revno
869
869
        if len(self._partial_revision_history_cache) <= distance_from_last:
870
 
            self._extend_partial_history(revno)
871
 
        return self._partial_revision_history_cache[revno]
 
870
            self._extend_partial_history(distance_from_last)
 
871
        return self._partial_revision_history_cache[distance_from_last]
872
872
 
873
873
    @needs_write_lock
874
874
    def pull(self, source, overwrite=False, stop_revision=None,