--- a/hgext/lfs/__init__.py Fri Mar 30 12:43:08 2018 +0200
+++ b/hgext/lfs/__init__.py Fri Mar 30 12:43:57 2018 +0200
@@ -340,9 +340,7 @@
# Make bundle choose changegroup3 instead of changegroup2. This affects
# "hg bundle" command. Note: it does not cover all bundle formats like
# "packed1". Using "packed1" with lfs will likely cause trouble.
- names = [k for k, v in exchange._bundlespeccgversions.items() if v == '02']
- for k in names:
- exchange._bundlespeccgversions[k] = '03'
+ exchange._bundlespeccontentopts["v2"]["cg.version"] = "03"
# bundlerepo uses "vfsmod.readonlyvfs(othervfs)", we need to make sure lfs
# options and blob stores are passed from othervfs to the new readonlyvfs.