Mercurial > hg-stable
changeset 51472:7752cf4f64cc stable
bundle-spec: properly identify changegroup-less bundle
It is possible to produce a bundle without changegroup. For example if we want
to only send phases or obsolescence information. However that lead to crash for
command that identifies bundle content. So we fix that.
The test will come in the next changesets, when we fix another bug preventing to
generate such bundle by hand.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 04 Apr 2024 16:41:43 +0200 |
parents | ee132657647d |
children | eac84af0c8cc |
files | mercurial/exchange.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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';'