Mercurial > hg
diff contrib/shrink-revlog.py @ 16306:d76b9abd1509
shrink-revlog: make check-code happier
There's still a naked 'except:' clause, but I'm not sure how to fix it
(what exception is it expecting?). This just fixes line length.
author | Greg Ward <greg@gerg.ca> |
---|---|
date | Wed, 28 Mar 2012 15:25:20 -0400 |
parents | 90ca62bb9e78 |
children | c2d9ef43ff6c |
line wrap: on
line diff
--- a/contrib/shrink-revlog.py Wed Mar 28 15:15:15 2012 -0400 +++ b/contrib/shrink-revlog.py Wed Mar 28 15:25:20 2012 -0400 @@ -269,19 +269,23 @@ lock.release() if not opts.get('dry_run'): - ui.write(_('note: old revlog saved in:\n' - ' %s\n' - ' %s\n' - '(You can delete those files when you are satisfied that your\n' - 'repository is still sane. ' - 'Running \'hg verify\' is strongly recommended.)\n') - % (oldindexfn, olddatafn)) + ui.write( + _('note: old revlog saved in:\n' + ' %s\n' + ' %s\n' + '(You can delete those files when you are satisfied that your\n' + 'repository is still sane. ' + 'Running \'hg verify\' is strongly recommended.)\n') + % (oldindexfn, olddatafn)) cmdtable = { 'shrink': (shrink, - [('', 'revlog', '', _('index (.i) file of the revlog to shrink')), - ('n', 'dry-run', None, _('do not shrink, simulate only')), - ('', 'sort', 'reversepostorder', 'name of sort algorithm to use'), + [('', 'revlog', '', + _('the revlog to shrink (.i)')), + ('n', 'dry-run', None, + _('do not shrink, simulate only')), + ('', 'sort', 'reversepostorder', + _('name of sort algorithm to use')), ], _('hg shrink [--revlog PATH]')) }