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): |