diff -r 44b26349127b -r d44e3c45f0e4 mercurial/localrepo.py --- a/mercurial/localrepo.py Sun May 29 12:38:54 2022 +0200 +++ b/mercurial/localrepo.py Sun May 29 15:17:27 2022 +0200 @@ -1885,7 +1885,7 @@ # wdirrev isn't contiguous so the slice shouldn't include it return [ self[i] - for i in pycompat.xrange(*changeid.indices(len(self))) + for i in range(*changeid.indices(len(self))) if i not in self.changelog.filteredrevs ]