equal
deleted
inserted
replaced
138 filesetlang, |
138 filesetlang, |
139 localrepo, |
139 localrepo, |
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, |
147 templateutil, |
146 templateutil, |
148 util, |
147 util, |
166 |
165 |
167 cmdtable = eh.cmdtable |
166 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 |
174 eh.configitem('experimental', 'lfs.serve', |
174 eh.configitem('experimental', 'lfs.serve', |
175 default=True, |
175 default=True, |
198 default='none()', |
198 default='none()', |
199 ) |
199 ) |
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, |
207 wrapper.writetostore, |
206 wrapper.writetostore, |
208 wrapper.bypasscheckhash, |
207 wrapper.bypasscheckhash, |
335 # Make bundle choose changegroup3 instead of changegroup2. This affects |
334 # Make bundle choose changegroup3 instead of changegroup2. This affects |
336 # "hg bundle" command. Note: it does not cover all bundle formats like |
335 # "hg bundle" command. Note: it does not cover all bundle formats like |
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 |
344 filesetlang.getargs(x, 0, 0, _("lfs takes no arguments")) |
343 filesetlang.getargs(x, 0, 0, _("lfs takes no arguments")) |
345 ctx = mctx.ctx |
344 ctx = mctx.ctx |