changeset 50414:806ca6bd0719

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 27 Feb 2023 19:59:55 -0500
parents 3eacb4a54313
children 2cf264e9aa75
files hgext/infinitepush/__init__.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,