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

Alexander Drozdov al.drozdov at gmail.com
Sun Feb 16 21:29:36 CST 2014


# HG changeset patch
# User Alexander Drozdov <al.drozdov at 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()

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)
 


More information about the Mercurial-devel mailing list