This commit is contained in:
hkoziak 2025-03-25 15:24:59 +02:00
parent 4e3ef30939
commit 8e71b8709d

View file

@ -308,9 +308,9 @@ class SubversionRepository(base.BaseRepository):
start_raw_id = self._sanitize_commit_id(start_id)
end_raw_id = self._sanitize_commit_id(end_id)
# for empty revisions in SVN
if start_raw_id not in self.commit_ids or end_raw_id not in self.commit_ids:
return base.CollectionGenerator(self, [])
return base.CollectionGenerator(self, [])
start_pos = self.commit_ids.index(start_raw_id) if start_id else None
end_pos = max(0, self.commit_ids.index(end_raw_id)) if end_id else None