mercurial/exchange.py
changeset 49335 04cdb442a892
parent 49334 6d15a8971e30
child 49765 4188e75af983
--- a/mercurial/exchange.py	Wed May 18 12:07:50 2022 +0100
+++ b/mercurial/exchange.py	Wed May 25 11:53:34 2022 +0200
@@ -146,6 +146,10 @@
                 splitted = requirements.split()
                 params = bundle2._formatrequirementsparams(splitted)
                 return b'none-v2;stream=v2;%s' % params
+            elif part.type == b'obsmarkers':
+                params[b'obsolescence'] = b'yes'
+                if not part.mandatory:
+                    params[b'obsolescence-mandatory'] = b'no'
 
         if not version:
             raise error.Abort(