backout: 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..
--- a/mercurial/commands.py Sat Aug 02 21:46:26 2014 +0900
+++ b/mercurial/commands.py Sat Aug 02 21:46:27 2014 +0900
@@ -505,11 +505,12 @@
def commitfunc(ui, repo, message, match, opts):
- e = cmdutil.getcommiteditor(**opts)
+ editform = 'backout'
+ e = cmdutil.getcommiteditor(editform=editform, **opts)
if not message:
# we don't translate commit messages
message = "Backed out changeset %s" % short(node)
- e = cmdutil.getcommiteditor(edit=True)
+ e = cmdutil.getcommiteditor(edit=True, editform=editform)
return repo.commit(message, opts.get('user'), opts.get('date'),
match, editor=e)
newnode = cmdutil.commit(ui, repo, commitfunc, [], opts)