diff --git a/hgext/largefiles/__init__.py b/hgext/largefiles/__init__.py --- a/hgext/largefiles/__init__.py +++ b/hgext/largefiles/__init__.py @@ -105,7 +105,7 @@ explicitly do so with the --large flag p command. ''' -from mercurial import commands, hg, localrepo +from mercurial import hg, localrepo import lfcommands import proto @@ -125,6 +125,4 @@ def uisetup(ui): hg.wirepeersetupfuncs.append(proto.wirereposetup) uisetupmod.uisetup(ui) -commands.norepo += " lfconvert" - cmdtable = lfcommands.cmdtable diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py +++ b/hgext/largefiles/lfcommands.py @@ -32,7 +32,8 @@ commands.inferrepo += " lfconvert" ('', '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