##// END OF EJS Templates
exthelper: reintroduce the ability to register filesets...
Matt Harbison -
r41100:8f40e21c default
parent child Browse files
Show More
@@ -140,7 +140,6 b' from mercurial import ('
140 140 minifileset,
141 141 node,
142 142 pycompat,
143 registrar,
144 143 repository,
145 144 revlog,
146 145 scmutil,
@@ -168,6 +167,7 b' cmdtable = eh.cmdtable'
168 167 configtable = eh.configtable
169 168 extsetup = eh.finalextsetup
170 169 uisetup = eh.finaluisetup
170 filesetpredicate = eh.filesetpredicate
171 171 reposetup = eh.finalreposetup
172 172 templatekeyword = eh.templatekeyword
173 173
@@ -200,7 +200,6 b" eh.configitem('lfs', 'track',"
200 200 eh.configitem('lfs', 'retry',
201 201 default=5,
202 202 )
203 filesetpredicate = registrar.filesetpredicate()
204 203
205 204 lfsprocessor = (
206 205 wrapper.readfromstore,
@@ -337,7 +336,7 b' def _extsetup(ui):'
337 336 # "packed1". Using "packed1" with lfs will likely cause trouble.
338 337 exchange._bundlespeccontentopts["v2"]["cg.version"] = "03"
339 338
340 @filesetpredicate('lfs()')
339 @eh.filesetpredicate('lfs()')
341 340 def lfsfileset(mctx, x):
342 341 """File that uses LFS storage."""
343 342 # i18n: "lfs" is a keyword
@@ -40,6 +40,7 b' class exthelper(object):'
40 40 self.command = registrar.command(self.cmdtable)
41 41 self.configtable = {}
42 42 self.configitem = registrar.configitem(self.configtable)
43 self.filesetpredicate = registrar.filesetpredicate()
43 44 self.revsetpredicate = registrar.revsetpredicate()
44 45 self.templatekeyword = registrar.templatekeyword()
45 46
@@ -48,6 +49,7 b' class exthelper(object):'
48 49 self._uipopulatecallables.extend(other._uipopulatecallables)
49 50 self._extcallables.extend(other._extcallables)
50 51 self._repocallables.extend(other._repocallables)
52 self.filesetpredicate._table.update(other.filesetpredicate._table)
51 53 self.revsetpredicate._table.update(other.revsetpredicate._table)
52 54 self.templatekeyword._table.update(other.templatekeyword._table)
53 55 self._commandwrappers.extend(other._commandwrappers)
General Comments 0
You need to be logged in to leave comments. Login now