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

Alexander Drozdov al.drozdov at gmail.com
Sun Feb 9 21:18:11 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 fb0f7ae8687fc32722802e0120026e3995b79c2f
# Parent  b70febf4c8f87687402638b744a6340eb3ecdc23
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
@@ -1872,7 +1872,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