# HG changeset patch # User Boris Feld # Date 1507926363 -7200 # Node ID 66adbe3c1046b6603f1bfbdf8651e01428b25e88 # Parent a0a727104eed6053a6a03d3207e81e1259d96bbe configitems: register the 'largefiles.minsize' config diff -r a0a727104eed -r 66adbe3c1046 hgext/largefiles/__init__.py --- a/hgext/largefiles/__init__.py Fri Oct 13 21:50:43 2017 +0200 +++ b/hgext/largefiles/__init__.py Fri Oct 13 22:26:03 2017 +0200 @@ -107,8 +107,10 @@ from __future__ import absolute_import from mercurial import ( + configitems, hg, localrepo, + registrar, ) from . import ( @@ -125,6 +127,12 @@ # leave the attribute unspecified. testedwith = 'ships-with-hg-core' +configtable = {} +configitem = registrar.configitem(configtable) + +configitem('largefiles', 'minsize', + default=configitems.dynamicdefault, +) reposetup = reposetup.reposetup def featuresetup(ui, supported):