diff -r 06de08b36c82 -r 2cce2fa5bcf7 mercurial/branchmap.py --- a/mercurial/branchmap.py Mon Feb 21 11:24:57 2022 -0700 +++ b/mercurial/branchmap.py Tue Mar 01 20:52:32 2022 -0800 @@ -119,7 +119,7 @@ clbranchinfo = cl.branchinfo rbheads = [] closed = set() - for bheads in pycompat.itervalues(remotebranchmap): + for bheads in remotebranchmap.values(): rbheads += bheads for h in bheads: r = clrev(h) @@ -406,7 +406,7 @@ def iterheads(self): """returns all the heads""" self._verifyall() - return pycompat.itervalues(self._entries) + return self._entries.values() def copy(self): """return an deep copy of the branchcache object"""