[PATCH remotefilelog-ext] commands: norepo was removed in aa73d6a5d9ea
Augie Fackler
raf at durin42.com
Thu Mar 3 19:57:16 UTC 2016
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1457030431 18000
# Thu Mar 03 13:40:31 2016 -0500
# Node ID d24ad079deed1e77d863d3d9044fc7162ee9a0f6
# Parent 36476ef7ce872ef164f910df2b71af7e52570640
commands: norepo was removed in aa73d6a5d9ea
Use the decorator form instead, introduced in hg 3.1.
diff --git a/remotefilelog/__init__.py b/remotefilelog/__init__.py
--- a/remotefilelog/__init__.py
+++ b/remotefilelog/__init__.py
@@ -514,10 +514,7 @@ def filelogrevset(orig, repo, subset, x)
return [r for r in subset if r in s]
-
-commands.norepo += " gc"
-
- at command('gc', [], _('hg gc [REPO...]'))
+ at command('gc', [], _('hg gc [REPO...]'), norepo=True)
def gc(ui, *args, **opts):
'''garbage collect the client and server filelog caches
'''
@@ -725,19 +722,15 @@ def _revertprefetch(orig, repo, ctx, *fi
repo.fileservice.prefetch(allfiles)
return orig(repo, ctx, *files)
-commands.norepo += " debugremotefilelog"
-
@command('debugremotefilelog', [
('d', 'decompress', None, _('decompress the filelog first')),
- ], _('hg debugremotefilelog <path>'))
+ ], _('hg debugremotefilelog <path>'), norepo=True)
def debugremotefilelog(ui, *args, **opts):
return debugcommands.debugremotefilelog(ui, *args, **opts)
-commands.norepo += " verifyremotefilelog"
-
@command('verifyremotefilelog', [
('d', 'decompress', None, _('decompress the filelogs first')),
- ], _('hg verifyremotefilelogs <directory>'))
+ ], _('hg verifyremotefilelogs <directory>'), norepo=True)
def verifyremotefilelog(ui, *args, **opts):
return debugcommands.verifyremotefilelog(ui, *args, **opts)
More information about the Mercurial-devel
mailing list