# HG changeset patch # User Augie Fackler # Date 2017-03-21 21:39:49 # Node ID a8e55d6f1d679fed20d7f18762313bc31b91e09c # Parent 55c6788c54e2faf80ec14f2b0844bfe429012bc3 revlog: use pycompat.maplist to eagerly evaluate map on Python 3 According to Pulkit, this should fix `hg status --all` on Python 3. diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -33,6 +33,7 @@ from . import ( error, mdiff, parsers, + pycompat, templatefilters, util, ) @@ -943,7 +944,7 @@ class revlog(object): ancs = self.index.commonancestorsheads(a, b) except (AttributeError, OverflowError): # C implementation failed ancs = ancestor.commonancestorsheads(self.parentrevs, a, b) - return map(self.node, ancs) + return pycompat.maplist(self.node, ancs) def isancestor(self, a, b): """return True if node a is an ancestor of node b