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