py3: do not pass a list of iterators to computephasesmapsets()
authorYuya Nishihara <yuya@tcha.org>
Sat, 03 Mar 2018 07:00:37 -0500
changeset 36624 3118766266ae
parent 36623 a472a897c340
child 36625 edd3974bd500
py3: do not pass a list of iterators to computephasesmapsets()
mercurial/phases.py
--- 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):