##// END OF EJS Templates
shrink-revlog: make check-code happier...
Greg Ward -
r16306:d76b9abd default
parent child Browse files
Show More
@@ -269,19 +269,23 b' def shrink(ui, repo, **opts):'
269 lock.release()
269 lock.release()
270
270
271 if not opts.get('dry_run'):
271 if not opts.get('dry_run'):
272 ui.write(_('note: old revlog saved in:\n'
272 ui.write(
273 ' %s\n'
273 _('note: old revlog saved in:\n'
274 ' %s\n'
274 ' %s\n'
275 '(You can delete those files when you are satisfied that your\n'
275 ' %s\n'
276 'repository is still sane. '
276 '(You can delete those files when you are satisfied that your\n'
277 'Running \'hg verify\' is strongly recommended.)\n')
277 'repository is still sane. '
278 % (oldindexfn, olddatafn))
278 'Running \'hg verify\' is strongly recommended.)\n')
279 % (oldindexfn, olddatafn))
279
280
280 cmdtable = {
281 cmdtable = {
281 'shrink': (shrink,
282 'shrink': (shrink,
282 [('', 'revlog', '', _('index (.i) file of the revlog to shrink')),
283 [('', 'revlog', '',
283 ('n', 'dry-run', None, _('do not shrink, simulate only')),
284 _('the revlog to shrink (.i)')),
284 ('', 'sort', 'reversepostorder', 'name of sort algorithm to use'),
285 ('n', 'dry-run', None,
286 _('do not shrink, simulate only')),
287 ('', 'sort', 'reversepostorder',
288 _('name of sort algorithm to use')),
285 ],
289 ],
286 _('hg shrink [--revlog PATH]'))
290 _('hg shrink [--revlog PATH]'))
287 }
291 }
@@ -31,15 +31,6 b''
31 warning: naked except clause
31 warning: naked except clause
32 warning: naked except clause
32 warning: naked except clause
33 contrib/shrink-revlog.py:0:
33 contrib/shrink-revlog.py:0:
34 > '(You can delete those files when you are satisfied that your\n'
35 warning: line over 80 characters
36 contrib/shrink-revlog.py:0:
37 > ('', 'sort', 'reversepostorder', 'name of sort algorithm to use'),
38 warning: line over 80 characters
39 contrib/shrink-revlog.py:0:
40 > [('', 'revlog', '', _('index (.i) file of the revlog to shrink')),
41 warning: line over 80 characters
42 contrib/shrink-revlog.py:0:
43 > except:
34 > except:
44 warning: naked except clause
35 warning: naked except clause
45 doc/gendoc.py:0:
36 doc/gendoc.py:0:
General Comments 0
You need to be logged in to leave comments. Login now