Show More
@@ -169,6 +169,7 b' configtable = eh.configtable' | |||||
169 | extsetup = eh.finalextsetup |
|
169 | extsetup = eh.finalextsetup | |
170 | uisetup = eh.finaluisetup |
|
170 | uisetup = eh.finaluisetup | |
171 | reposetup = eh.finalreposetup |
|
171 | reposetup = eh.finalreposetup | |
|
172 | templatekeyword = eh.templatekeyword | |||
172 |
|
173 | |||
173 | eh.configitem('experimental', 'lfs.serve', |
|
174 | eh.configitem('experimental', 'lfs.serve', | |
174 | default=True, |
|
175 | default=True, | |
@@ -199,7 +200,6 b" eh.configitem('lfs', 'track'," | |||||
199 | eh.configitem('lfs', 'retry', |
|
200 | eh.configitem('lfs', 'retry', | |
200 | default=5, |
|
201 | default=5, | |
201 | ) |
|
202 | ) | |
202 | templatekeyword = registrar.templatekeyword() |
|
|||
203 | filesetpredicate = registrar.filesetpredicate() |
|
203 | filesetpredicate = registrar.filesetpredicate() | |
204 |
|
204 | |||
205 | lfsprocessor = ( |
|
205 | lfsprocessor = ( | |
@@ -347,7 +347,7 b' def lfsfileset(mctx, x):' | |||||
347 | return wrapper.pointerfromctx(ctx, f, removed=True) is not None |
|
347 | return wrapper.pointerfromctx(ctx, f, removed=True) is not None | |
348 | return mctx.predicate(lfsfilep, predrepr='<lfs>') |
|
348 | return mctx.predicate(lfsfilep, predrepr='<lfs>') | |
349 |
|
349 | |||
350 | @templatekeyword('lfs_files', requires={'ctx'}) |
|
350 | @eh.templatekeyword('lfs_files', requires={'ctx'}) | |
351 | def lfsfiles(context, mapping): |
|
351 | def lfsfiles(context, mapping): | |
352 | """List of strings. All files modified, added, or removed by this |
|
352 | """List of strings. All files modified, added, or removed by this | |
353 | changeset.""" |
|
353 | changeset.""" |
@@ -41,6 +41,7 b' class exthelper(object):' | |||||
41 | self.configtable = {} |
|
41 | self.configtable = {} | |
42 | self.configitem = registrar.configitem(self.configtable) |
|
42 | self.configitem = registrar.configitem(self.configtable) | |
43 | self.revsetpredicate = registrar.revsetpredicate() |
|
43 | self.revsetpredicate = registrar.revsetpredicate() | |
|
44 | self.templatekeyword = registrar.templatekeyword() | |||
44 |
|
45 | |||
45 | def merge(self, other): |
|
46 | def merge(self, other): | |
46 | self._uicallables.extend(other._uicallables) |
|
47 | self._uicallables.extend(other._uicallables) | |
@@ -48,6 +49,7 b' class exthelper(object):' | |||||
48 | self._extcallables.extend(other._extcallables) |
|
49 | self._extcallables.extend(other._extcallables) | |
49 | self._repocallables.extend(other._repocallables) |
|
50 | self._repocallables.extend(other._repocallables) | |
50 | self.revsetpredicate._table.update(other.revsetpredicate._table) |
|
51 | self.revsetpredicate._table.update(other.revsetpredicate._table) | |
|
52 | self.templatekeyword._table.update(other.templatekeyword._table) | |||
51 | self._commandwrappers.extend(other._commandwrappers) |
|
53 | self._commandwrappers.extend(other._commandwrappers) | |
52 | self._extcommandwrappers.extend(other._extcommandwrappers) |
|
54 | self._extcommandwrappers.extend(other._extcommandwrappers) | |
53 | self._functionwrappers.extend(other._functionwrappers) |
|
55 | self._functionwrappers.extend(other._functionwrappers) |
General Comments 0
You need to be logged in to leave comments.
Login now