[PATCH 02 of 10 py3] dispatch: use pycompat.maplist to allow summing with args

Augie Fackler raf at durin42.com
Sun Mar 19 14:26:15 EDT 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1489947427 14400
#      Sun Mar 19 14:17:07 2017 -0400
# Node ID dec51b4b12490adab91d55d46c9db0cb77637a28
# Parent  b68f9464efb7ef50f6f0a8f811da91b414546e20
dispatch: use pycompat.maplist to allow summing with args

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -480,7 +480,8 @@ def _parse(ui, args):
         args = aliasargs(entry[0], args)
         defaults = ui.config("defaults", cmd)
         if defaults:
-            args = map(util.expandpath, pycompat.shlexsplit(defaults)) + args
+            args = pycompat.maplist(
+                util.expandpath, pycompat.shlexsplit(defaults)) + args
         c = list(entry[1])
     else:
         cmd = None


More information about the Mercurial-devel mailing list