diff -r 36e9d2c60837 -r e1e3d1b498d3 mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Oct 01 23:11:07 2018 -0700 +++ b/mercurial/localrepo.py Wed Sep 26 22:44:51 2018 -0700 @@ -1210,7 +1210,7 @@ return changeid if isinstance(changeid, slice): # wdirrev isn't contiguous so the slice shouldn't include it - return [context.changectx(self, i) + return [self[i] for i in pycompat.xrange(*changeid.indices(len(self))) if i not in self.changelog.filteredrevs] try: