equal
deleted
inserted
replaced
338 scmutil.fileprefetchhooks.add('lfs', wrapper._prefetchfiles) |
338 scmutil.fileprefetchhooks.add('lfs', wrapper._prefetchfiles) |
339 |
339 |
340 # Make bundle choose changegroup3 instead of changegroup2. This affects |
340 # Make bundle choose changegroup3 instead of changegroup2. This affects |
341 # "hg bundle" command. Note: it does not cover all bundle formats like |
341 # "hg bundle" command. Note: it does not cover all bundle formats like |
342 # "packed1". Using "packed1" with lfs will likely cause trouble. |
342 # "packed1". Using "packed1" with lfs will likely cause trouble. |
343 names = [k for k, v in exchange._bundlespeccgversions.items() if v == '02'] |
343 exchange._bundlespeccontentopts["v2"]["cg.version"] = "03" |
344 for k in names: |
|
345 exchange._bundlespeccgversions[k] = '03' |
|
346 |
344 |
347 # bundlerepo uses "vfsmod.readonlyvfs(othervfs)", we need to make sure lfs |
345 # bundlerepo uses "vfsmod.readonlyvfs(othervfs)", we need to make sure lfs |
348 # options and blob stores are passed from othervfs to the new readonlyvfs. |
346 # options and blob stores are passed from othervfs to the new readonlyvfs. |
349 wrapfunction(vfsmod.readonlyvfs, '__init__', wrapper.vfsinit) |
347 wrapfunction(vfsmod.readonlyvfs, '__init__', wrapper.vfsinit) |
350 |
348 |