commit: abolish useless "--force-editor" internal option for "hg commit"
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Wed, 16 Apr 2014 02:04:41 +0900
changeset 21035 e6e34c17b1cc
parent 21034 693b4cb4330f
child 21036 a1a1bd09e4f4
commit: abolish useless "--force-editor" internal option for "hg commit" "--force-editor" option for "hg commit" has been useless since 12721a20ed30, which makes "commands.tag()" invoke "cmdutil.commit()" directly instead of "commands.commit()" with "--force-editor" internal option. This patch abolishes useless "--force-editor" internal option for "hg commit".
mercurial/commands.py
--- a/mercurial/commands.py	Tue Apr 15 14:15:35 2014 -0400
+++ b/mercurial/commands.py	Wed Apr 16 02:04:41 2014 +0900
@@ -1364,7 +1364,7 @@
 
     Returns 0 on success, 1 if nothing changed.
     """
-    forceeditor = opts.get('force_editor') or opts.get('edit')
+    forceeditor = opts.get('edit')
 
     if opts.get('subrepos'):
         if opts.get('amend'):