From patchwork Sun Mar 19 18:26:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [02, of, 10, py3] dispatch: use pycompat.maplist to allow summing with args From: Augie Fackler X-Patchwork-Id: 19452 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 19 Mar 2017 14:26:15 -0400 # HG changeset patch # User Augie Fackler # 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