Mercurial > hg
changeset 31574:a8e55d6f1d67
revlog: use pycompat.maplist to eagerly evaluate map on Python 3
According to Pulkit, this should fix `hg status --all` on Python 3.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 21 Mar 2017 17:39:49 -0400 |
parents | 55c6788c54e2 |
children | e506e461c7a9 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Mar 21 22:47:49 2017 -0700 +++ b/mercurial/revlog.py Tue Mar 21 17:39:49 2017 -0400 @@ -33,6 +33,7 @@ error, mdiff, parsers, + pycompat, templatefilters, util, ) @@ -943,7 +944,7 @@ 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