Show More
@@ -146,6 +146,7 b' import util' | |||||
146 | import struct |
|
146 | import struct | |
147 | import urllib |
|
147 | import urllib | |
148 | import string |
|
148 | import string | |
|
149 | import obsolete | |||
149 | import pushkey |
|
150 | import pushkey | |
150 |
|
151 | |||
151 | import changegroup, error |
|
152 | import changegroup, error | |
@@ -800,6 +801,12 b' def bundle2caps(remote):' | |||||
800 | capsblob = urllib.unquote(remote.capable('bundle2-exp')) |
|
801 | capsblob = urllib.unquote(remote.capable('bundle2-exp')) | |
801 | return decodecaps(capsblob) |
|
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 | @parthandler('b2x:changegroup') |
|
810 | @parthandler('b2x:changegroup') | |
804 | def handlechangegroup(op, inpart): |
|
811 | def handlechangegroup(op, inpart): | |
805 | """apply a changegroup part on the repo |
|
812 | """apply a changegroup part on the repo |
General Comments 0
You need to be logged in to leave comments.
Login now