Patchwork [33,of,35] largefiles: define inferrepo in command decorator

mail settings
Submitter Gregory Szorc
Date May 5, 2014, 5:51 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/4624/
State Accepted
Commit a730b002c5db129568a0e4800c1733c31d31e886
Headers show


Gregory Szorc - May 5, 2014, 5:51 a.m.
# HG changeset patch
# User Gregory Szorc <>
# Date 1399267425 25200
#      Sun May 04 22:23:45 2014 -0700
# Branch stable
# Node ID c7ff4caa9f4e8e7bb166537a29f5193b2fa1c9ce
# Parent  2f18b849913ac3f5fc317f7cac30e2e3bf101d0c
largefiles: define inferrepo in command decorator


diff --git a/hgext/largefiles/ b/hgext/largefiles/
--- a/hgext/largefiles/
+++ b/hgext/largefiles/
@@ -19,26 +19,25 @@  from mercurial.lock import release
 import lfutil
 import basestore
 # -- Commands ----------------------------------------------------------
 cmdtable = {}
 command = cmdutil.command(cmdtable)
-commands.inferrepo += " lfconvert"
     [('s', 'size', '',
       _('minimum size (MB) for files to be converted as largefiles'), 'SIZE'),
     ('', 'to-normal', False,
      _('convert from a largefiles repo to a normal repo')),
     _('hg lfconvert SOURCE DEST [FILE ...]'),
-    norepo=True)
+    norepo=True,
+    inferrepo=True)
 def lfconvert(ui, src, dest, *pats, **opts):
     '''convert a normal repository to a largefiles repository
     Convert repository SOURCE to a new repository DEST, identical to
     SOURCE except that certain files will be converted as largefiles:
     specifically, any file that matches any PATTERN *or* whose size is
     above the minimum size threshold is converted as a largefile. The
     size used to determine whether or not to track a file as a