Mercurial > hg
changeset 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 | 17a9a1f5cee2 |
files | contrib/shrink-revlog.py tests/test-check-code-hg.t |
diffstat | 2 files changed, 14 insertions(+), 19 deletions(-) [+] |
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]')) }
--- a/tests/test-check-code-hg.t Wed Mar 28 15:15:15 2012 -0400 +++ b/tests/test-check-code-hg.t Wed Mar 28 15:25:20 2012 -0400 @@ -31,15 +31,6 @@ warning: naked except clause warning: naked except clause contrib/shrink-revlog.py:0: - > '(You can delete those files when you are satisfied that your\n' - warning: line over 80 characters - contrib/shrink-revlog.py:0: - > ('', 'sort', 'reversepostorder', 'name of sort algorithm to use'), - warning: line over 80 characters - contrib/shrink-revlog.py:0: - > [('', 'revlog', '', _('index (.i) file of the revlog to shrink')), - warning: line over 80 characters - contrib/shrink-revlog.py:0: > except: warning: naked except clause doc/gendoc.py:0: