##// END OF EJS Templates
bundle2: add a `obsmarkersversion` function to extract supported version...
Pierre-Yves David -
r22344:9829b794 default
parent child Browse files
Show More
@@ -146,6 +146,7 b' import util'
146 146 import struct
147 147 import urllib
148 148 import string
149 import obsolete
149 150 import pushkey
150 151
151 152 import changegroup, error
@@ -800,6 +801,12 b' def bundle2caps(remote):'
800 801 capsblob = urllib.unquote(remote.capable('bundle2-exp'))
801 802 return decodecaps(capsblob)
802 803
804 def obsmarkersversion(caps):
805 """extract the list of supported obsmarkers versions from a bundle2caps dict
806 """
807 obscaps = caps.get('b2x:obsmarkers', ())
808 return [int(c[1:]) for c in obscaps if c.startswith('V')]
809
803 810 @parthandler('b2x:changegroup')
804 811 def handlechangegroup(op, inpart):
805 812 """apply a changegroup part on the repo
General Comments 0
You need to be logged in to leave comments. Login now