diff mercurial/bundle2.py @ 46633:7015b0232c5e

exchange: stop advertising rev-branch-cache bundle capability Since Mercurial 5.7, the corresponding bundle part is ignored as redundant. Stop advertising it so that peers don't have to spend time creating or transfering it. Differential Revision: https://phab.mercurial-scm.org/D10114
author Joerg Sonnenberger <joerg@bec.de>
date Thu, 04 Mar 2021 21:58:55 +0100
parents 83ac7c91e172
children bc2519513ae0
line wrap: on
line diff
--- a/mercurial/bundle2.py	Fri Jan 29 16:33:12 2021 -0800
+++ b/mercurial/bundle2.py	Thu Mar 04 21:58:55 2021 +0100
@@ -1598,7 +1598,6 @@
     b'digests': tuple(sorted(util.DIGESTS.keys())),
     b'remote-changegroup': (b'http', b'https'),
     b'hgtagsfnodes': (),
-    b'rev-branch-cache': (),
     b'phases': (b'heads',),
     b'stream': (b'v2',),
 }
@@ -1643,6 +1642,9 @@
     # Else always advertise support on client, because payload support
     # should always be advertised.
 
+    # b'rev-branch-cache is no longer advertised, but still supported
+    # for legacy clients.
+
     return caps