comparison hgext/largefiles/lfcommands.py @ 21770:15d434bee41c

largefiles: define norepo in command decorator
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 04 May 2014 21:11:15 -0700
parents 503bb3af70fe
children a730b002c5db
comparison
equal deleted inserted replaced
21769:4a54d9f1b6b6 21770:15d434bee41c
30 [('s', 'size', '', 30 [('s', 'size', '',
31 _('minimum size (MB) for files to be converted as largefiles'), 'SIZE'), 31 _('minimum size (MB) for files to be converted as largefiles'), 'SIZE'),
32 ('', 'to-normal', False, 32 ('', 'to-normal', False,
33 _('convert from a largefiles repo to a normal repo')), 33 _('convert from a largefiles repo to a normal repo')),
34 ], 34 ],
35 _('hg lfconvert SOURCE DEST [FILE ...]')) 35 _('hg lfconvert SOURCE DEST [FILE ...]'),
36 norepo=True)
36 def lfconvert(ui, src, dest, *pats, **opts): 37 def lfconvert(ui, src, dest, *pats, **opts):
37 '''convert a normal repository to a largefiles repository 38 '''convert a normal repository to a largefiles repository
38 39
39 Convert repository SOURCE to a new repository DEST, identical to 40 Convert repository SOURCE to a new repository DEST, identical to
40 SOURCE except that certain files will be converted as largefiles: 41 SOURCE except that certain files will be converted as largefiles: