mercurial/exchange.py
changeset 51597 ee1b648e4453
parent 51583 1cef1412af3e
parent 51558 7752cf4f64cc
child 51639 69c5f8d6c710
--- a/mercurial/exchange.py	Wed Mar 13 12:02:06 2024 +0100
+++ b/mercurial/exchange.py	Wed Apr 17 12:28:48 2024 +0200
@@ -158,9 +158,8 @@
                     params[b'obsolescence-mandatory'] = b'no'
 
         if not version:
-            raise error.Abort(
-                _(b'could not identify changegroup version in bundle')
-            )
+            params[b'changegroup'] = b'no'
+            version = b'v2'
         spec = b'%s-%s' % (comp, version)
         if params:
             spec += b';'