hgext/lfs/__init__.py
changeset 37165 6c7a6b04b274
parent 37147 a2566597acb5
child 37248 dfb38c4850a9
equal deleted inserted replaced
37164:b229fd9adeae 37165:6c7a6b04b274
   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