3098
3098
index = self._partial_revision_history_cache.index(revision_id)
3101
3104
index = len(self._partial_revision_history_cache) - 1
3102
3105
if self._partial_revision_history_cache[index] != revision_id:
3103
3106
raise errors.NoSuchRevision(self, revision_id)