Patchwork [2,of,4,V3,RESEND] cmdutil: make commitforceeditor() to pass revision extras to ui.edit()

login
register
mail settings
Submitter Alexander Drozdov
Date Feb. 17, 2014, 3:29 a.m.
Message ID <5d444f429e90fda0290d.1392607776@localhost6.localdomain6>
Download mbox | patch
Permalink /patch/3684/
State Accepted
Commit 4991cfc90f59a23a22c923c7ecaa35b13356baa2
Headers show

Comments

Alexander Drozdov - Feb. 17, 2014, 3:29 a.m.
# HG changeset patch
# User Alexander Drozdov <al.drozdov@gmail.com>
# 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()

Patch

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)