Comments
Patch
@@ -120,11 +120,9 @@ def featuresetup(ui, supported):
# don't die on seeing a repo with the largefiles requirement
supported |= set(['largefiles'])
def uisetup(ui):
localrepo.localrepository.featuresetupfuncs.add(featuresetup)
hg.wirepeersetupfuncs.append(proto.wirereposetup)
uisetupmod.uisetup(ui)
-commands.norepo += " lfconvert"
-
cmdtable = lfcommands.cmdtable
@@ -27,17 +27,18 @@ command = cmdutil.command(cmdtable)
commands.inferrepo += " lfconvert"
@command('lfconvert',
[('s', 'size', '',
_('minimum size (MB) for files to be converted as largefiles'), 'SIZE'),
('', 'to-normal', False,
_('convert from a largefiles repo to a normal repo')),
],
- _('hg lfconvert SOURCE DEST [FILE ...]'))
+ _('hg lfconvert SOURCE DEST [FILE ...]'),
+ norepo=True)
def lfconvert(ui, src, dest, *pats, **opts):
'''convert a normal repository to a largefiles repository
Convert repository SOURCE to a new repository DEST, identical to
SOURCE except that certain files will be converted as largefiles:
specifically, any file that matches any PATTERN *or* whose size is
above the minimum size threshold is converted as a largefile. The
size used to determine whether or not to track a file as a