diff hgext/amend.py @ 42932:e4803231f538

amend: add option to update to the current user This is also from the evolve extension's version of amend. A side effect of this refactoring is for uncommit to support `rewrite.update-timestamp`. Differential Revision: https://phab.mercurial-scm.org/D6853
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 14 Sep 2019 15:13:16 -0400
parents 4145fd3569c3
children 7e9997041781
line wrap: on
line diff
--- a/hgext/amend.py	Wed Sep 11 15:03:08 2019 -0700
+++ b/hgext/amend.py	Sat Sep 14 15:13:16 2019 -0400
@@ -36,9 +36,8 @@
      ('e', 'edit', None, _('invoke editor on commit messages')),
      ('i', 'interactive', None, _('use interactive mode')),
      ('n', 'note', '', _('store a note on the amend')),
-     ('D', 'currentdate', None,
-      _('record the current date as commit date')),
-    ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2,
+    ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2
+      + cmdutil.commitopts3,
     _('[OPTION]... [FILE]...'),
     helpcategory=command.CATEGORY_COMMITTING,
     inferrepo=True)