# HG changeset patch # User Pierre-Yves David # Date 1411619334 25200 # 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 -r a92ba36a1a9d -r e4dc2b0be056 mercurial/bundle2.py --- a/mercurial/bundle2.py Wed Sep 24 21:24:06 2014 -0700 +++ b/mercurial/bundle2.py Wed Sep 24 21:28:54 2014 -0700 @@ -882,6 +882,7 @@ 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