Mercurial > hg-stable
comparison hgext/fix.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 | f1d6021453c2 |
children | 8ebb05f747e5 |
comparison
equal
deleted
inserted
replaced
40292:9c6473d2038b | 40293:c303d65d2e34 |
---|---|
107 revopt = ('r', 'rev', [], _('revisions to fix'), _('REV')) | 107 revopt = ('r', 'rev', [], _('revisions to fix'), _('REV')) |
108 wdiropt = ('w', 'working-dir', False, _('fix the working directory')) | 108 wdiropt = ('w', 'working-dir', False, _('fix the working directory')) |
109 wholeopt = ('', 'whole', False, _('always fix every line of a file')) | 109 wholeopt = ('', 'whole', False, _('always fix every line of a file')) |
110 usage = _('[OPTION]... [FILE]...') | 110 usage = _('[OPTION]... [FILE]...') |
111 | 111 |
112 @command('fix', [allopt, baseopt, revopt, wdiropt, wholeopt], usage) | 112 @command('fix', [allopt, baseopt, revopt, wdiropt, wholeopt], usage, |
113 helpcategory=command.CATEGORY_FILE_CONTENTS) | |
113 def fix(ui, repo, *pats, **opts): | 114 def fix(ui, repo, *pats, **opts): |
114 """rewrite file content in changesets or working directory | 115 """rewrite file content in changesets or working directory |
115 | 116 |
116 Runs any configured tools to fix the content of files. Only affects files | 117 Runs any configured tools to fix the content of files. Only affects files |
117 with changes, unless file arguments are provided. Only affects changed lines | 118 with changes, unless file arguments are provided. Only affects changed lines |