Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundlecaches.py @ 49337:d89bfc075289
bundlespec: do not check for `-` in the params portion of the bundlespec
Otherwise bundle parameter with `-` in their names result in a crash.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 25 May 2022 11:27:16 +0200 |
parents | 1b04d5213d0f |
children | 9be765b82a90 |
line wrap: on
line diff
--- a/mercurial/bundlecaches.py Wed May 18 10:38:11 2022 +0100 +++ b/mercurial/bundlecaches.py Wed May 25 11:27:16 2022 +0200 @@ -192,7 +192,8 @@ % spec ) - if b'-' in spec: + pre_args = spec.split(b';', 1)[0] + if b'-' in pre_args: compression, version = spec.split(b'-', 1) if compression not in util.compengines.supportedbundlenames: