comparison mercurial/commands.py @ 21035:e6e34c17b1cc

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".
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 16 Apr 2014 02:04:41 +0900
parents 693b4cb4330f
children a1a1bd09e4f4
comparison
equal deleted inserted replaced
21034:693b4cb4330f 21035:e6e34c17b1cc
1362 1362
1363 See :hg:`help dates` for a list of formats valid for -d/--date. 1363 See :hg:`help dates` for a list of formats valid for -d/--date.
1364 1364
1365 Returns 0 on success, 1 if nothing changed. 1365 Returns 0 on success, 1 if nothing changed.
1366 """ 1366 """
1367 forceeditor = opts.get('force_editor') or opts.get('edit') 1367 forceeditor = opts.get('edit')
1368 1368
1369 if opts.get('subrepos'): 1369 if opts.get('subrepos'):
1370 if opts.get('amend'): 1370 if opts.get('amend'):
1371 raise util.Abort(_('cannot amend with --subrepos')) 1371 raise util.Abort(_('cannot amend with --subrepos'))
1372 # Let --subrepos on the command line override config setting. 1372 # Let --subrepos on the command line override config setting.