Mercurial > public > mercurial-scm > hg
diff hgext/shelve.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 | e2697acd9381 |
children | b14fdf1fb615 |
line wrap: on
line diff
--- a/hgext/shelve.py Fri Oct 12 17:57:36 2018 +0200 +++ b/hgext/shelve.py Sat Oct 13 02:17:41 2018 -0700 @@ -903,7 +903,8 @@ ('t', 'tool', '', _('specify merge tool')), ('', 'date', '', _('set date for temporary commits (DEPRECATED)'), _('DATE'))], - _('hg unshelve [[-n] SHELVED]')) + _('hg unshelve [[-n] SHELVED]'), + helpcategory=command.CATEGORY_WORKING_DIRECTORY) def unshelve(ui, repo, *shelved, **opts): """restore a shelved change to the working directory @@ -1073,7 +1074,8 @@ _('output diffstat-style summary of changes (provide the names of ' 'the shelved changes as positional arguments)') )] + cmdutil.walkopts, - _('hg shelve [OPTION]... [FILE]...')) + _('hg shelve [OPTION]... [FILE]...'), + helpcategory=command.CATEGORY_WORKING_DIRECTORY) def shelvecmd(ui, repo, *pats, **opts): '''save and set aside changes from the working directory