Show More
@@ -107,9 +107,10 b' command.' | |||||
107 | from __future__ import absolute_import |
|
107 | from __future__ import absolute_import | |
108 |
|
108 | |||
109 | from mercurial import ( |
|
109 | from mercurial import ( | |
|
110 | configitems, | |||
|
111 | exthelper, | |||
110 | hg, |
|
112 | hg, | |
111 | localrepo, |
|
113 | localrepo, | |
112 | registrar, |
|
|||
113 | ) |
|
114 | ) | |
114 |
|
115 | |||
115 | from . import ( |
|
116 | from . import ( | |
@@ -126,19 +127,19 b' from . import (' | |||||
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): |
General Comments 0
You need to be logged in to leave comments.
Login now