Mercurial > public > mercurial-scm > hg
diff mercurial/bundle2.py @ 50514:cd2a2963b982
stream-clone: upgrade the error message for bad stream request
The new version if more compact and more consistent with the general Mercurial
usage.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Sun, 21 May 2023 00:00:29 +0200 |
parents | bcf54837241d |
children | f2bcb56a1d39 |
line wrap: on
line diff
--- a/mercurial/bundle2.py Sun May 21 03:21:00 2023 +0200 +++ b/mercurial/bundle2.py Sun May 21 00:00:29 2023 +0200 @@ -1881,17 +1881,9 @@ return if not streamclone.allowservergeneration(repo): - raise error.Abort( - _( - b'stream data requested but server does not allow ' - b'this feature' - ), - hint=_( - b'well-behaved clients should not be ' - b'requesting stream data from servers not ' - b'advertising it; the client may be buggy' - ), - ) + msg = _(b'stream data requested but server does not allow this feature') + hint = _(b'the client seems buggy') + raise error.Abort(msg, hint=hint) # Stream clones don't compress well. And compression undermines a # goal of stream clones, which is to be fast. Communicate the desire