Mercurial > hg-stable
diff mercurial/bundle2.py @ 36974:2090044a288d
revbranchcache: advertise and use 'rbc' exchange capability
The feature is now advertised and use.
Updating the branchmap cache can be very expensive (up to minutes on large
repository) and fetching revision branch data is about 80% of that. Exchanging
the rev branch cache over the wire really help to recover from branch map
invalidation.
(There is a good chance other in flight chance would conflict on
test-http-bad-server.t and other. So here is a small note to help update that
test again: capabilities=19bytes, part-107bytes)
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 18 Jan 2018 15:10:22 +0100 |
parents | b89a7ef29013 |
children | 66c0ff381cfc |
line wrap: on
line diff
--- a/mercurial/bundle2.py Wed Feb 21 19:26:41 2018 +0100 +++ b/mercurial/bundle2.py Thu Jan 18 15:10:22 2018 +0100 @@ -1492,6 +1492,7 @@ 'digests': tuple(sorted(util.DIGESTS.keys())), 'remote-changegroup': ('http', 'https'), 'hgtagsfnodes': (), + 'rev-branch-cache': (), 'phases': ('heads',), 'stream': ('v2',), }