equal
deleted
inserted
replaced
128 |
128 |
129 from mercurial.i18n import _ |
129 from mercurial.i18n import _ |
130 |
130 |
131 from mercurial import ( |
131 from mercurial import ( |
132 config, |
132 config, |
|
133 context, |
133 error, |
134 error, |
134 exchange, |
135 exchange, |
135 extensions, |
136 extensions, |
136 exthelper, |
137 exthelper, |
137 filelog, |
138 filelog, |
327 |
328 |
328 @eh.extsetup |
329 @eh.extsetup |
329 def _extsetup(ui): |
330 def _extsetup(ui): |
330 wrapfilelog(filelog.filelog) |
331 wrapfilelog(filelog.filelog) |
331 |
332 |
|
333 context.basefilectx.islfs = wrapper.filectxislfs |
|
334 |
332 scmutil.fileprefetchhooks.add('lfs', wrapper._prefetchfiles) |
335 scmutil.fileprefetchhooks.add('lfs', wrapper._prefetchfiles) |
333 |
336 |
334 # Make bundle choose changegroup3 instead of changegroup2. This affects |
337 # Make bundle choose changegroup3 instead of changegroup2. This affects |
335 # "hg bundle" command. Note: it does not cover all bundle formats like |
338 # "hg bundle" command. Note: it does not cover all bundle formats like |
336 # "packed1". Using "packed1" with lfs will likely cause trouble. |
339 # "packed1". Using "packed1" with lfs will likely cause trouble. |