infinitepush: opt out of changegroup3 unless explicitly configured
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 27 Feb 2023 19:59:55 -0500
changeset 50280 806ca6bd0719
parent 50279 3eacb4a54313
child 50281 2cf264e9aa75
infinitepush: opt out of changegroup3 unless explicitly configured This is currently a no-op, as changegroup3 is disabled by default. But when it is enabled, it changes the hash names of the bundle files. As I don't use this extension, I have no idea if that's OK or not. So keep the current default behavior until we can get more info from actual users, while allowing them to opt-in for testing purposes.
hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py	Wed Mar 01 13:31:17 2023 -0500
+++ b/hgext/infinitepush/__init__.py	Mon Feb 27 19:59:55 2023 -0500
@@ -330,6 +330,11 @@
         clientextsetup(ui)
 
 
+def uipopulate(ui):
+    if not ui.hasconfig(b"experimental", b"changegroup3"):
+        ui.setconfig(b"experimental", b"changegroup3", False, b"infinitepush")
+
+
 def commonsetup(ui):
     wireprotov1server.commands[b'listkeyspatterns'] = (
         wireprotolistkeyspatterns,