Mercurial > hg
diff mercurial/wireproto.py @ 24696:553dc2b094d9
bundle2: advertise bundle2 by default
That way, any new server will be ready to accept bundle2 payload. The decision
for the client to use it is still off by default so this is not turning bundle2
everywhere.
We introduce a new kill switch for this in case stuff goes wrong.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 10 Apr 2015 15:41:33 -0400 |
parents | e0e28e910fa3 |
children | 61ff209fc01d |
line wrap: on
line diff
--- a/mercurial/wireproto.py Sat Feb 07 12:57:40 2015 -0500 +++ b/mercurial/wireproto.py Fri Apr 10 15:41:33 2015 -0400 @@ -615,7 +615,7 @@ # otherwise, add 'streamreqs' detailing our local revlog format else: caps.append('streamreqs=%s' % ','.join(requiredformats)) - if repo.ui.configbool('experimental', 'bundle2-exp', False): + if repo.ui.configbool('experimental', 'bundle2-advertise', True): capsblob = bundle2.encodecaps(bundle2.getrepocaps(repo)) caps.append('bundle2=' + urllib.quote(capsblob)) caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority))