mercurial/bundle2.py
changeset 22953 b1d694d3975e
parent 22661 9ea2913e7c41
child 23001 4df9b5e62f70
equal deleted inserted replaced
22952:8792ac090e3b 22953:b1d694d3975e
   786     """return the bundle2 capabilities for a given repo
   786     """return the bundle2 capabilities for a given repo
   787 
   787 
   788     Exists to allow extensions (like evolution) to mutate the capabilities.
   788     Exists to allow extensions (like evolution) to mutate the capabilities.
   789     """
   789     """
   790     caps = capabilities.copy()
   790     caps = capabilities.copy()
   791     if obsolete._enabled:
   791     if obsolete.isenabled(repo, obsolete.exchangeopt):
   792         supportedformat = tuple('V%i' % v for v in obsolete.formats)
   792         supportedformat = tuple('V%i' % v for v in obsolete.formats)
   793         caps['b2x:obsmarkers'] = supportedformat
   793         caps['b2x:obsmarkers'] = supportedformat
   794     return caps
   794     return caps
   795 
   795 
   796 def bundle2caps(remote):
   796 def bundle2caps(remote):