mercurial/bundle2.py
changeset 50517 cd2a2963b982
parent 50318 bcf54837241d
child 50518 f2bcb56a1d39
--- 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