[PATCH 10 of 15] graft: pass 'editform' argument to 'cmdutil.getcommiteditor'

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Sat Aug 2 08:02:19 CDT 2014


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1406983587 -32400
#      Sat Aug 02 21:46:27 2014 +0900
# Node ID 87ac4b4b2cdf1fd7c33567a6f0b29431f9ec513a
# Parent  6f1b80531218ad9387054f47adeda39432c53b3f
graft: pass 'editform' argument to 'cmdutil.getcommiteditor'

This patch passes 'editform' argument according to the format below:

  COMMAND[.ROUTE]

  - ROUTE: name of route, if there are two or more routes in COMMAND

In this patch, ROUTE is omitted.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3122,7 +3122,7 @@
     if not opts.get('date') and opts.get('currentdate'):
         opts['date'] = "%d %d" % util.makedate()
 
-    editor = cmdutil.getcommiteditor(**opts)
+    editor = cmdutil.getcommiteditor(editform='graft', **opts)
 
     cont = False
     if opts['continue']:


More information about the Mercurial-devel mailing list