changeset 36653:3118766266ae

py3: do not pass a list of iterators to computephasesmapsets()
author Yuya Nishihara <yuya@tcha.org>
date Sat, 03 Mar 2018 07:00:37 -0500
parents a472a897c340
children edd3974bd500
files mercurial/phases.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/phases.py	Sat Mar 03 06:57:02 2018 -0500
+++ b/mercurial/phases.py	Sat Mar 03 07:00:37 2018 -0500
@@ -262,7 +262,8 @@
         repo = repo.unfiltered()
         nativeroots = []
         for phase in trackedphases:
-            nativeroots.append(map(repo.changelog.rev, self.phaseroots[phase]))
+            nativeroots.append(pycompat.maplist(repo.changelog.rev,
+                                                self.phaseroots[phase]))
         return repo.changelog.computephases(nativeroots)
 
     def _computephaserevspure(self, repo):