[PATCH 1 of 2] commit: abolish useless "--force-editor" internal option for "hg commit"

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Tue Apr 15 12:39:04 CDT 2014


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1397581481 -32400
#      Wed Apr 16 02:04:41 2014 +0900
# Node ID b643fd82568ffc69a7d2ce711eb6e9174556cf9b
# Parent  76f68595ff8e5616a79dd79e962a97cc9ba58713
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".

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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'):


More information about the Mercurial-devel mailing list