Mercurial > hg
comparison hgext/largefiles/__init__.py @ 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 | 1775f93da25c |
children | 3f3c6d12095d |
comparison
equal
deleted
inserted
replaced
34754:a0a727104eed | 34755:66adbe3c1046 |
---|---|
105 command. | 105 command. |
106 ''' | 106 ''' |
107 from __future__ import absolute_import | 107 from __future__ import absolute_import |
108 | 108 |
109 from mercurial import ( | 109 from mercurial import ( |
110 configitems, | |
110 hg, | 111 hg, |
111 localrepo, | 112 localrepo, |
113 registrar, | |
112 ) | 114 ) |
113 | 115 |
114 from . import ( | 116 from . import ( |
115 lfcommands, | 117 lfcommands, |
116 overrides, | 118 overrides, |
123 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 125 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
124 # be specifying the version(s) of Mercurial they are tested with, or | 126 # be specifying the version(s) of Mercurial they are tested with, or |
125 # leave the attribute unspecified. | 127 # leave the attribute unspecified. |
126 testedwith = 'ships-with-hg-core' | 128 testedwith = 'ships-with-hg-core' |
127 | 129 |
130 configtable = {} | |
131 configitem = registrar.configitem(configtable) | |
132 | |
133 configitem('largefiles', 'minsize', | |
134 default=configitems.dynamicdefault, | |
135 ) | |
128 reposetup = reposetup.reposetup | 136 reposetup = reposetup.reposetup |
129 | 137 |
130 def featuresetup(ui, supported): | 138 def featuresetup(ui, supported): |
131 # don't die on seeing a repo with the largefiles requirement | 139 # don't die on seeing a repo with the largefiles requirement |
132 supported |= {'largefiles'} | 140 supported |= {'largefiles'} |