diff -r c95b2f40db7c -r 74802979dd9d mercurial/branchmap.py --- a/mercurial/branchmap.py Sun Oct 06 17:45:05 2019 -0400 +++ b/mercurial/branchmap.py Sun Oct 06 17:59:15 2019 -0400 @@ -91,7 +91,7 @@ clbranchinfo = cl.branchinfo rbheads = [] closed = [] - for bheads in remotebranchmap.itervalues(): + for bheads in pycompat.itervalues(remotebranchmap): rbheads += bheads for h in bheads: r = clrev(h) @@ -350,7 +350,7 @@ def iterheads(self): """ returns all the heads """ self._verifyall() - return self._entries.itervalues() + return pycompat.itervalues(self._entries) def copy(self): """return an deep copy of the branchcache object"""