# HG changeset patch # User Matt Harbison # Date 1677545995 18000 # Node ID 806ca6bd071907aa67089083c5556f2f5b0799b6 # Parent 3eacb4a54313b0d50c27e857e06b59652471dd34 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. diff -r 3eacb4a54313 -r 806ca6bd0719 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,