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

login
register
mail settings
Submitter Yuya Nishihara
Date March 3, 2018, 1:27 p.m.
Message ID <d02adc818848486b2389.1520083661@mimosa>
Download mbox | patch
Permalink /patch/28772/
State Accepted
Headers show

Comments

Yuya Nishihara - March 3, 2018, 1:27 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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()

Patch

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):