##// END OF EJS Templates
revlog: use pycompat.maplist to eagerly evaluate map on Python 3...
Augie Fackler -
r31574:a8e55d6f default
parent child Browse files
Show More
@@ -33,6 +33,7 b' from . import ('
33 33 error,
34 34 mdiff,
35 35 parsers,
36 pycompat,
36 37 templatefilters,
37 38 util,
38 39 )
@@ -943,7 +944,7 b' class revlog(object):'
943 944 ancs = self.index.commonancestorsheads(a, b)
944 945 except (AttributeError, OverflowError): # C implementation failed
945 946 ancs = ancestor.commonancestorsheads(self.parentrevs, a, b)
946 return map(self.node, ancs)
947 return pycompat.maplist(self.node, ancs)
947 948
948 949 def isancestor(self, a, b):
949 950 """return True if node a is an ancestor of node b
General Comments 0
You need to be logged in to leave comments. Login now