From patchwork Mon Feb 17 03:29:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2, of, 4, V3, RESEND] cmdutil: make commitforceeditor() to pass revision extras to ui.edit() From: Alexander Drozdov X-Patchwork-Id: 3684 Message-Id: <5d444f429e90fda0290d.1392607776@localhost6.localdomain6> To: mercurial-devel@selenic.com Date: Mon, 17 Feb 2014 07:29:36 +0400 # HG changeset patch # User Alexander Drozdov # Date 1391667320 -14400 # Thu Feb 06 10:15:20 2014 +0400 # Node ID 5d444f429e90fda0290d8c57287420fdde3cb2c8 # Parent d16cb20404ea32b1ad9e632f8c28918ef139216c cmdutil: make commitforceeditor() to pass revision extras to ui.edit() diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2010,7 +2010,7 @@ # run editor in the repository root olddir = os.getcwd() os.chdir(repo.root) - text = repo.ui.edit("\n".join(edittext), ctx.user()) + text = repo.ui.edit("\n".join(edittext), ctx.user(), ctx.extra()) text = re.sub("(?m)^HG:.*(\n|$)", "", text) os.chdir(olddir)