Patchwork [remotefilelog-ext] commands: norepo was removed in aa73d6a5d9ea

login
register
mail settings
Submitter Augie Fackler
Date March 3, 2016, 7:57 p.m.
Message ID <d24ad079deed1e77d863.1457035036@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/13584/
State Accepted
Headers show

Comments

Augie Fackler - March 3, 2016, 7:57 p.m.
# HG changeset patch
# User Augie Fackler <augie@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.
Durham Goode - March 3, 2016, 11 p.m.
On 3/3/16, 11:57 AM, "Augie Fackler" <raf@durin42.com> wrote:



># HG changeset patch

># User Augie Fackler <augie@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.


Accepted and pushed, thanks!

Patch

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"
-
-@command('gc', [], _('hg gc [REPO...]'))
+@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)