Patchwork D1558: py3: use pycompat.maplist() instead of map()

login
register
mail settings
Submitter phabricator
Date Nov. 30, 2017, 12:58 p.m.
Message ID <081411d39e3b9b51461fb19accbfc61e@localhost.localdomain>
Download mbox | patch
Permalink /patch/25824/
State Not Applicable
Headers show

Comments

phabricator - Nov. 30, 2017, 12:58 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe6487522ef92: py3: use pycompat.maplist() instead of map() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1558?vs=3982&id=4006

REVISION DETAIL
  https://phab.mercurial-scm.org/D1558

AFFECTED FILES
  mercurial/dispatch.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -913,7 +913,7 @@ 
                     if not func.optionalrepo:
                         if func.inferrepo and args and not path:
                             # try to infer -R from command args
-                            repos = map(cmdutil.findrepo, args)
+                            repos = pycompat.maplist(cmdutil.findrepo, args)
                             guess = repos[0]
                             if guess and repos.count(guess) == len(repos):
                                 req.args = ['--repository', guess] + fullargs