D1558: py3: use pycompat.maplist() instead of map()
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Nov 30 07:58:35 EST 2017
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
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
To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list