comparison hgext/censor.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 a6b3c4c1019f
children 2372284d9457
comparison
equal deleted inserted replaced
40292:9c6473d2038b 40293:c303d65d2e34
45 testedwith = 'ships-with-hg-core' 45 testedwith = 'ships-with-hg-core'
46 46
47 @command('censor', 47 @command('censor',
48 [('r', 'rev', '', _('censor file from specified revision'), _('REV')), 48 [('r', 'rev', '', _('censor file from specified revision'), _('REV')),
49 ('t', 'tombstone', '', _('replacement tombstone data'), _('TEXT'))], 49 ('t', 'tombstone', '', _('replacement tombstone data'), _('TEXT'))],
50 _('-r REV [-t TEXT] [FILE]')) 50 _('-r REV [-t TEXT] [FILE]'),
51 helpcategory=command.CATEGORY_MAINTENANCE)
51 def censor(ui, repo, path, rev='', tombstone='', **opts): 52 def censor(ui, repo, path, rev='', tombstone='', **opts):
52 with repo.wlock(), repo.lock(): 53 with repo.wlock(), repo.lock():
53 return _docensor(ui, repo, path, rev, tombstone, **opts) 54 return _docensor(ui, repo, path, rev, tombstone, **opts)
54 55
55 def _docensor(ui, repo, path, rev='', tombstone='', **opts): 56 def _docensor(ui, repo, path, rev='', tombstone='', **opts):