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

login
register
mail settings
Submitter phabricator
Date Nov. 29, 2017, 11:10 p.m.
Message ID <differential-rev-PHID-DREV-lqwcknvo3nyh2fpe5pey-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/25815/
State Superseded
Headers show

Comments

phabricator - Nov. 29, 2017, 11:10 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/dispatch.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
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