[PATCH 08 of 11] py3: do not pass a list of iterators to computephasesmapsets()

Yuya Nishihara yuya at tcha.org
Sat Mar 3 13:27:41 UTC 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1520078437 18000
#      Sat Mar 03 07:00:37 2018 -0500
# Node ID d02adc818848486b23894e5fea4f632fb56b5aa4
# Parent  0ceb34d59bec1e8512461f2479c7fe5024a85422
py3: do not pass a list of iterators to computephasesmapsets()

diff --git a/mercurial/phases.py b/mercurial/phases.py
--- a/mercurial/phases.py
+++ b/mercurial/phases.py
@@ -262,7 +262,8 @@ class phasecache(object):
         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):



More information about the Mercurial-devel mailing list