diff hgext/amend.py @ 41173:4145fd3569c3

amend: turn currentdate into tri-state bool so config option can be negated Otherwise, rewrite.update-timestap couldn't be overridden by --no-currentdate. FWIW, which do we like? --no-currentdate vs --no-current-date. If the latter is preferred, maybe we can add "graft --current-date" and deprecate "--currentdate".
author Yuya Nishihara <yuya@tcha.org>
date Thu, 10 Jan 2019 21:32:37 +0900
parents 126101284e04
children e4803231f538
line wrap: on
line diff
--- a/hgext/amend.py	Fri Jan 04 17:54:18 2019 +0100
+++ b/hgext/amend.py	Thu Jan 10 21:32:37 2019 +0900
@@ -36,7 +36,7 @@
      ('e', 'edit', None, _('invoke editor on commit messages')),
      ('i', 'interactive', None, _('use interactive mode')),
      ('n', 'note', '', _('store a note on the amend')),
-     ('D', 'currentdate', False,
+     ('D', 'currentdate', None,
       _('record the current date as commit date')),
     ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2,
     _('[OPTION]... [FILE]...'),