mercurial/exchange.py
branchstable
changeset 51558 7752cf4f64cc
parent 50696 2aaabd8f4471
child 51597 ee1b648e4453
child 51630 429d57227e7f
--- a/mercurial/exchange.py	Wed Apr 03 16:00:37 2024 +0200
+++ b/mercurial/exchange.py	Thu Apr 04 16:41:43 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';'