--- a/hgext/largefiles/lfcommands.py Sun Dec 23 21:54:56 2018 -0500
+++ b/hgext/largefiles/lfcommands.py Sun Dec 23 17:26:25 2018 -0500
@@ -20,12 +20,12 @@
cmdutil,
context,
error,
+ exthelper,
hg,
lock,
match as matchmod,
node,
pycompat,
- registrar,
scmutil,
util,
)
@@ -44,10 +44,9 @@
# -- Commands ----------------------------------------------------------
-cmdtable = {}
-command = registrar.command(cmdtable)
+eh = exthelper.exthelper()
-@command('lfconvert',
+@eh.command('lfconvert',
[('s', 'size', '',
_('minimum size (MB) for files to be converted as largefiles'), 'SIZE'),
('', 'to-normal', False,
@@ -560,7 +559,7 @@
statuswriter(_('%d largefiles updated, %d removed\n') % (updated,
removed))
-@command('lfpull',
+@eh.command('lfpull',
[('r', 'rev', [], _('pull largefiles for these revisions'))
] + cmdutil.remoteopts,
_('-r REV... [-e CMD] [--remotecmd CMD] [SOURCE]'))
@@ -599,7 +598,7 @@
numcached += len(cached)
ui.status(_("%d largefiles cached\n") % numcached)
-@command('debuglfput',
+@eh.command('debuglfput',
[] + cmdutil.remoteopts,
_('FILE'))
def debuglfput(ui, repo, filepath, **kwargs):