diff -r b0aaffcb6fcf -r ee1b648e4453 mercurial/exchange.py --- 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';'