cmdutil: make commitforceeditor() to pass revision extras to ui.edit()
authorAlexander Drozdov <al.drozdov@gmail.com>
Thu, 06 Feb 2014 10:15:20 +0400
changeset 20604 4991cfc90f59
parent 20603 cc76c619bed6
child 20605 a8aa699a812a
cmdutil: make commitforceeditor() to pass revision extras to ui.edit()
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Thu Feb 06 11:38:28 2014 +0400
+++ b/mercurial/cmdutil.py	Thu Feb 06 10:15:20 2014 +0400
@@ -2008,7 +2008,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)