Mercurial > hg
changeset 23169:e4dc2b0be056
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).
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 24 Sep 2014 21:28:54 -0700 |
parents | a92ba36a1a9d |
children | 02e8f9b60052 |
files | mercurial/bundle2.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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