# HG changeset patch # User Pierre-Yves David # Date 2014-08-22 01:18:38 # Node ID 76677a2c1cfd32e255cf7345a085ed0898e9d61e # Parent 262c5cc126c16327d759daa45ab74b68f7accec9 bundle2: advertise the obsmarker part in bundle2 capabilities diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -784,10 +784,13 @@ capabilities = {'HG2X': (), def getrepocaps(repo): """return the bundle2 capabilities for a given repo - Exists to allow extensions (like evolution) to mutate the - capabilities. + Exists to allow extensions (like evolution) to mutate the capabilities. """ - return capabilities + caps = capabilities.copy() + if obsolete._enabled: + supportedformat = tuple('V%i' % v for v in obsolete.formats) + caps['b2x:obsmarkers'] = supportedformat + return caps def bundle2caps(remote): """return the bundlecapabilities of a peer as dict"""