comparison hgext/amend.py @ 40293:c303d65d2e34

help: assigning categories to existing commands I'm separating this into its own commit so people can bikeshed over the actual categorization (vs the support for categories). These categories are based on the help implementation we've been using internally at Google, and have had zero complaints. Differential Revision: https://phab.mercurial-scm.org/D5067
author rdamazio@google.com
date Sat, 13 Oct 2018 02:17:41 -0700
parents 3e549546a6e9
children 126101284e04
comparison
equal deleted inserted replaced
40292:9c6473d2038b 40293:c303d65d2e34
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 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2, 39 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2,
40 _('[OPTION]... [FILE]...'), 40 _('[OPTION]... [FILE]...'),
41 helpcategory=command.CATEGORY_COMMITTING,
41 inferrepo=True) 42 inferrepo=True)
42 def amend(ui, repo, *pats, **opts): 43 def amend(ui, repo, *pats, **opts):
43 """amend the working copy parent with all or specified outstanding changes 44 """amend the working copy parent with all or specified outstanding changes
44 45
45 Similar to :hg:`commit --amend`, but reuse the commit message without 46 Similar to :hg:`commit --amend`, but reuse the commit message without