Mercurial > hg
diff hgext/lfs/__init__.py @ 37165:6c7a6b04b274
bundlespec: move computing the bundle contentops in parsebundlespec
We will introduce a new bundlespec for stream bundle which will influence the
contentops.
Differential Revision: https://phab.mercurial-scm.org/D1952
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Mar 2018 12:43:57 +0200 |
parents | a2566597acb5 |
children | dfb38c4850a9 |
line wrap: on
line diff
--- 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.