From patchwork Wed Feb 7 11:22:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2070: py3: use pycompat.ziplist instead of zip From: phabricator X-Patchwork-Id: 27412 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Wed, 7 Feb 2018 11:22:57 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGf81df691efe7: py3: use pycompat.ziplist instead of zip (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2070?vs=5276&id=5284 REVISION DETAIL https://phab.mercurial-scm.org/D2070 AFFECTED FILES mercurial/dispatch.py CHANGE DETAILS To: pulkit, #hg-reviewers, durin42 Cc: mercurial-devel diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -477,7 +477,8 @@ if earlyopts: self.badalias = (_("error in definition for alias '%s': %s may " "only be given on the command line") - % (self.name, '/'.join(zip(*earlyopts)[0]))) + % (self.name, '/'.join(pycompat.ziplist(*earlyopts) + [0]))) return self.cmdname = cmd = args.pop(0) self.givenargs = args