923
945
partial_history = [known_revid]
924
946
distance_from_known = known_revno - revno
925
947
if distance_from_known < 0:
931
951
self, partial_history, stop_index=distance_from_known)
932
952
except errors.RevisionNotPresent as err:
933
953
if err.revision_id == known_revid:
934
954
# The start revision (known_revid) wasn't found.
936
956
# This is a stacked repository with no fallbacks, or a there's a
937
957
# left-hand ghost. Either way, even though the revision named in
938
958
# the error isn't in this repo, we know it's the next step in this