Mercurial > hg
changeset 34755:66adbe3c1046
configitems: register the 'largefiles.minsize' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 13 Oct 2017 22:26:03 +0200 |
parents | a0a727104eed |
children | 3f3c6d12095d |
files | hgext/largefiles/__init__.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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):