# HG changeset patch # User Pierre-Yves David # Date 2014-09-25 04:28:54 # Node ID e4dc2b0be056bc1f5a8cd650eeed59ea684b91fc # Parent a92ba36a1a9de50a7c10d20ab5981622d8fa86f2 bundle2caps: advertise the available versions for changegroup packer This will let the bundle2 client and server detect what packer they should be using. This detection part is not done. I expect it to be done with the addition of the second packer (with generaldelta support). diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -882,6 +882,7 @@ def getrepocaps(repo): Exists to allow extensions (like evolution) to mutate the capabilities. """ caps = capabilities.copy() + caps['b2x:changegroup'] = tuple(sorted(changegroup.packermap.keys())) if obsolete.isenabled(repo, obsolete.exchangeopt): supportedformat = tuple('V%i' % v for v in obsolete.formats) caps['b2x:obsmarkers'] = supportedformat