##// END OF EJS Templates
largefiles: define norepo in command decorator
Gregory Szorc -
r21770:15d434be default
parent child Browse files
Show More
@@ -105,7 +105,7 b' explicitly do so with the --large flag p'
105 command.
105 command.
106 '''
106 '''
107
107
108 from mercurial import commands, hg, localrepo
108 from mercurial import hg, localrepo
109
109
110 import lfcommands
110 import lfcommands
111 import proto
111 import proto
@@ -125,6 +125,4 b' def uisetup(ui):'
125 hg.wirepeersetupfuncs.append(proto.wirereposetup)
125 hg.wirepeersetupfuncs.append(proto.wirereposetup)
126 uisetupmod.uisetup(ui)
126 uisetupmod.uisetup(ui)
127
127
128 commands.norepo += " lfconvert"
129
130 cmdtable = lfcommands.cmdtable
128 cmdtable = lfcommands.cmdtable
@@ -32,7 +32,8 b' commands.inferrepo += " lfconvert"'
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
General Comments 0
You need to be logged in to leave comments. Login now