diff -r 06de08b36c82 -r 2cce2fa5bcf7 mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Feb 21 11:24:57 2022 -0700 +++ b/mercurial/localrepo.py Tue Mar 01 20:52:32 2022 -0800 @@ -2139,7 +2139,7 @@ nodetagscache = {} for t, n in self._tagscache.tags.items(): nodetagscache.setdefault(n, []).append(t) - for tags in pycompat.itervalues(nodetagscache): + for tags in nodetagscache.values(): tags.sort() self._tagscache.nodetagscache = nodetagscache return self._tagscache.nodetagscache.get(node, [])