Mercurial > hg
comparison hgext/hgk.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 | e7aa113b14f7 |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
40292:9c6473d2038b | 40293:c303d65d2e34 |
---|---|
343 revtree(ui, copy, repo, full, opts[r'max_count'], opts[r'parents']) | 343 revtree(ui, copy, repo, full, opts[r'max_count'], opts[r'parents']) |
344 | 344 |
345 @command('view', | 345 @command('view', |
346 [('l', 'limit', '', | 346 [('l', 'limit', '', |
347 _('limit number of changes displayed'), _('NUM'))], | 347 _('limit number of changes displayed'), _('NUM'))], |
348 _('[-l LIMIT] [REVRANGE]')) | 348 _('[-l LIMIT] [REVRANGE]'), |
349 helpcategory=command.CATEGORY_CHANGE_NAVIGATION) | |
349 def view(ui, repo, *etc, **opts): | 350 def view(ui, repo, *etc, **opts): |
350 "start interactive history viewer" | 351 "start interactive history viewer" |
351 opts = pycompat.byteskwargs(opts) | 352 opts = pycompat.byteskwargs(opts) |
352 os.chdir(repo.root) | 353 os.chdir(repo.root) |
353 optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v]) | 354 optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v]) |