# HG changeset patch # User FUJIWARA Katsunori # Date 1406983587 -32400 # Node ID a5bb0c4001ae49f8f90e4a48d07e0e465ef19a03 # Parent 7e71a65bf94f536e49c1a2fda7118973f9ab2ebf 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.. diff -r 7e71a65bf94f -r a5bb0c4001ae mercurial/commands.py --- 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)