hgext/censor.py
changeset 40293 c303d65d2e34
parent 39778 a6b3c4c1019f
child 43076 2372284d9457
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):