comparison hgext/amend.py @ 41125:126101284e04

amend: add -D/--currentdate option It bumps the date field even if there's no other change. The help text is copied from commands.graft(). Unlike graft, --date with --currentdate is disallowed, which I think is saner behavior.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 07 Jan 2019 21:43:06 +0900
parents c303d65d2e34
children 4145fd3569c3
comparison
equal deleted inserted replaced
41124:cffa8e0ba77a 41125:126101284e04
34 [('A', 'addremove', None, 34 [('A', 'addremove', None,
35 _('mark new/missing files as added/removed before committing')), 35 _('mark new/missing files as added/removed before committing')),
36 ('e', 'edit', None, _('invoke editor on commit messages')), 36 ('e', 'edit', None, _('invoke editor on commit messages')),
37 ('i', 'interactive', None, _('use interactive mode')), 37 ('i', 'interactive', None, _('use interactive mode')),
38 ('n', 'note', '', _('store a note on the amend')), 38 ('n', 'note', '', _('store a note on the amend')),
39 ('D', 'currentdate', False,
40 _('record the current date as commit date')),
39 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2, 41 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2,
40 _('[OPTION]... [FILE]...'), 42 _('[OPTION]... [FILE]...'),
41 helpcategory=command.CATEGORY_COMMITTING, 43 helpcategory=command.CATEGORY_COMMITTING,
42 inferrepo=True) 44 inferrepo=True)
43 def amend(ui, repo, *pats, **opts): 45 def amend(ui, repo, *pats, **opts):