# HG changeset patch # User Gregory Szorc # Date 2014-05-05 05:23:45 # Node ID a730b002c5db129568a0e4800c1733c31d31e886 # Parent 44efd5b9ce458cdf91666e3584d791b4adb7da12 largefiles: define inferrepo in command decorator diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py +++ b/hgext/largefiles/lfcommands.py @@ -24,8 +24,6 @@ import basestore cmdtable = {} command = cmdutil.command(cmdtable) -commands.inferrepo += " lfconvert" - @command('lfconvert', [('s', 'size', '', _('minimum size (MB) for files to be converted as largefiles'), 'SIZE'), @@ -33,7 +31,8 @@ commands.inferrepo += " lfconvert" _('convert from a largefiles repo to a normal repo')), ], _('hg lfconvert SOURCE DEST [FILE ...]'), - norepo=True) + norepo=True, + inferrepo=True) def lfconvert(ui, src, dest, *pats, **opts): '''convert a normal repository to a largefiles repository