##// END OF EJS Templates
bundle2: advertise the obsmarker part in bundle2 capabilities
Pierre-Yves David -
r22343:76677a2c default
parent child Browse files
Show More
@@ -784,10 +784,13 b" capabilities = {'HG2X': (),"
784 def getrepocaps(repo):
784 def getrepocaps(repo):
785 """return the bundle2 capabilities for a given repo
785 """return the bundle2 capabilities for a given repo
786
786
787 Exists to allow extensions (like evolution) to mutate the
787 Exists to allow extensions (like evolution) to mutate the capabilities.
788 capabilities.
789 """
788 """
790 return capabilities
789 caps = capabilities.copy()
790 if obsolete._enabled:
791 supportedformat = tuple('V%i' % v for v in obsolete.formats)
792 caps['b2x:obsmarkers'] = supportedformat
793 return caps
791
794
792 def bundle2caps(remote):
795 def bundle2caps(remote):
793 """return the bundlecapabilities of a peer as dict"""
796 """return the bundlecapabilities of a peer as dict"""
General Comments 0
You need to be logged in to leave comments. Login now