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

login
register
mail settings
Submitter Augie Fackler
Date March 19, 2017, 6:26 p.m.
Message ID <dec51b4b12490adab91d.1489947975@imladris.local>
Download mbox | patch
Permalink /patch/19452/
State Accepted
Headers show

Comments

Augie Fackler - March 19, 2017, 6:26 p.m.
# HG changeset patch
# User Augie Fackler <augie@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

Patch

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