Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 49292:d44e3c45f0e4
py3: replace `pycompat.xrange` by `range`
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 29 May 2022 15:17:27 +0200 |
parents | 2bcf5e14bb7e |
children | 2e726c934fcd |
comparison
equal
deleted
inserted
replaced
49291:44b26349127b | 49292:d44e3c45f0e4 |
---|---|
1883 # dealing with multiple revisions | 1883 # dealing with multiple revisions |
1884 if isinstance(changeid, slice): | 1884 if isinstance(changeid, slice): |
1885 # wdirrev isn't contiguous so the slice shouldn't include it | 1885 # wdirrev isn't contiguous so the slice shouldn't include it |
1886 return [ | 1886 return [ |
1887 self[i] | 1887 self[i] |
1888 for i in pycompat.xrange(*changeid.indices(len(self))) | 1888 for i in range(*changeid.indices(len(self))) |
1889 if i not in self.changelog.filteredrevs | 1889 if i not in self.changelog.filteredrevs |
1890 ] | 1890 ] |
1891 | 1891 |
1892 # dealing with some special values | 1892 # dealing with some special values |
1893 quick_access = self._quick_access_changeid.get(changeid) | 1893 quick_access = self._quick_access_changeid.get(changeid) |