hgext/lfs/__init__.py
changeset 37165 6c7a6b04b274
parent 37147 a2566597acb5
child 37248 dfb38c4850a9
--- 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.