Skip to content
Snippets Groups Projects
Commit 4275c0a3 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

perf: make perf::bundle compatible before 61ba04693d65

A small change to make it compatible with a wider set of revision.
parent 5acbc550
No related branches found
No related tags found
No related merge requests found
......@@ -1092,9 +1092,14 @@
bundle_spec = opts.get(b'type')
bundle_spec = bundlecaches.parsebundlespec(repo, bundle_spec, strict=False)
cgversion = bundle_spec.params[b"cg.version"]
bundle_spec = parsebundlespec(repo, bundle_spec, strict=False)
cgversion = bundle_spec.params.get(b"cg.version")
if cgversion is None:
if bundle_spec.version == b'v1':
cgversion = b'01'
if bundle_spec.version == b'v2':
cgversion = b'02'
if cgversion not in changegroup.supportedoutgoingversions(repo):
err = b"repository does not support bundle version %s"
raise error.Abort(err % cgversion)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment