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

login
register
mail settings
Submitter Alexander Drozdov
Date Feb. 7, 2014, 4:25 a.m.
Message ID <441c5f6d5e7d8c047311.1391747159@localhost6.localdomain6>
Download mbox | patch
Permalink /patch/3507/
State Superseded
Headers show

Comments

Alexander Drozdov - Feb. 7, 2014, 4:25 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 441c5f6d5e7d8c047311f6a0e8bc4012520009b3
# Parent  46b0c64cc27c14e91b96b8c2a2b31aff51ea1002
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
@@ -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)