hgext/lfs/__init__.py
changeset 35100 07e97998d385
parent 35099 b8e5fb8d2389
child 35175 e0a1b9ee93cd
--- a/hgext/lfs/__init__.py	Tue Nov 14 00:14:52 2017 -0500
+++ b/hgext/lfs/__init__.py	Tue Nov 14 01:03:22 2017 -0500
@@ -54,6 +54,31 @@
 # leave the attribute unspecified.
 testedwith = 'ships-with-hg-core'
 
+configtable = {}
+configitem = registrar.configitem(configtable)
+
+configitem('lfs', 'url',
+    default=configitem.dynamicdefault,
+)
+configitem('lfs', 'threshold',
+    default=None,
+)
+configitem('lfs', 'retry',
+    default=5,
+)
+# Deprecated
+configitem('lfs', 'remotestore',
+    default=None,
+)
+# Deprecated
+configitem('lfs', 'dummy',
+    default=None,
+)
+# Deprecated
+configitem('lfs', 'git-lfs',
+    default=None,
+)
+
 cmdtable = {}
 command = registrar.command(cmdtable)
 
@@ -64,7 +89,7 @@
     if not repo.local():
         return
 
-    threshold = repo.ui.configbytes('lfs', 'threshold', None)
+    threshold = repo.ui.configbytes('lfs', 'threshold')
 
     repo.svfs.options['lfsthreshold'] = threshold
     repo.svfs.lfslocalblobstore = blobstore.local(repo)