Commit 290c29df authored by Pierre-Yves David's avatar Pierre-Yves David 🐙
Browse files

bundlespec: check the `obsolescence` value before adding the caps

This does not really matters as the logic to decide wether or not adding the
part is correct and elsewhere. However this seems like a good idea to align
this logic witht he semantic of the option.
parent 04cdb442a892
Pipeline #54872 passed with stage
in 34 minutes and 17 seconds
......@@ -1692,7 +1692,7 @@
raise error.ProgrammingError(b'unknown bundle type: %s' % bundletype)
caps = {}
if b'obsolescence' in opts:
if opts.get(b'obsolescence', False):
caps[b'obsmarkers'] = (b'V1',)
bundle = bundle20(ui, caps)
bundle.setcompression(compression, compopts)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment