124 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
125 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
125 # 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 |
126 # leave the attribute unspecified. |
127 # leave the attribute unspecified. |
127 testedwith = 'ships-with-hg-core' |
128 testedwith = 'ships-with-hg-core' |
128 |
129 |
129 configtable = {} |
130 eh = exthelper.exthelper() |
130 configitem = registrar.configitem(configtable) |
|
131 |
131 |
132 configitem('largefiles', 'minsize', |
132 eh.configitem('largefiles', 'minsize', |
133 default=configitem.dynamicdefault, |
133 default=configitems.dynamicdefault, |
134 ) |
134 ) |
135 configitem('largefiles', 'patterns', |
135 eh.configitem('largefiles', 'patterns', |
136 default=list, |
136 default=list, |
137 ) |
137 ) |
138 configitem('largefiles', 'usercache', |
138 eh.configitem('largefiles', 'usercache', |
139 default=None, |
139 default=None, |
140 ) |
140 ) |
141 |
141 |
|
142 configtable = eh.configtable |
142 reposetup = reposetup.reposetup |
143 reposetup = reposetup.reposetup |
143 |
144 |
144 def featuresetup(ui, supported): |
145 def featuresetup(ui, supported): |
145 # don't die on seeing a repo with the largefiles requirement |
146 # don't die on seeing a repo with the largefiles requirement |
146 supported |= {'largefiles'} |
147 supported |= {'largefiles'} |