mercurial/commands.py
changeset 21712 51035af2c0bf
parent 21689 503bb3af70fe
child 21720 db2392a4effc
--- a/mercurial/commands.py	Sun Jun 01 00:08:32 2014 +0900
+++ b/mercurial/commands.py	Sun Jun 01 00:08:32 2014 +0900
@@ -386,6 +386,7 @@
     ('', 'parent', '',
      _('parent to choose when backing out merge (DEPRECATED)'), _('REV')),
     ('r', 'rev', '', _('revision to backout'), _('REV')),
+    ('e', 'edit', False, _('invoke editor on commit messages')),
     ] + mergetoolopts + walkopts + commitopts + commitopts2,
     _('[OPTION]... [-r] REV'))
 def backout(ui, repo, node=None, rev=None, **opts):
@@ -488,7 +489,7 @@
 
 
         def commitfunc(ui, repo, message, match, opts):
-            e = cmdutil.getcommiteditor()
+            e = cmdutil.getcommiteditor(**opts)
             if not message:
                 # we don't translate commit messages
                 message = "Backed out changeset %s" % short(node)