changeset 22006:7e71a65bf94f

transplant: pass 'editform' argument to 'cmdutil.getcommiteditor' This patch passes 'editform' argument according to the format below: EXTENSION[.COMMAND][.ROUTE] - EXTENSION: name of extension - COMMAND: name of command, if there are two or more commands in EXTENSION - ROUTE: name of route, if there are two or more routes in COMMAND In this patch, COMMAND and ROUTE are omitted.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sat, 02 Aug 2014 21:46:26 +0900
parents dabf8fb8a91e
children a5bb0c4001ae
files hgext/transplant.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/transplant.py	Sat Aug 02 21:46:26 2014 +0900
+++ b/hgext/transplant.py	Sat Aug 02 21:46:26 2014 +0900
@@ -86,7 +86,7 @@
         self.opener = scmutil.opener(self.path)
         self.transplants = transplants(self.path, 'transplants',
                                        opener=self.opener)
-        self.editor = cmdutil.getcommiteditor(**opts)
+        self.editor = cmdutil.getcommiteditor(editform='transplant', **opts)
 
     def applied(self, repo, node, parent):
         '''returns True if a node is already an ancestor of parent