wireprotov2server: don't attempt to cast command name
authorGregory Szorc <gregory.szorc@gmail.com>
Fri, 25 Jan 2019 14:57:37 -0800
changeset 41399 e053053ceba7
parent 41398 56fcbac62f67
child 41400 e6c1c6478d04
wireprotov2server: don't attempt to cast command name I'm not sure why this was added. The command name should already be bytes. Differential Revision: https://phab.mercurial-scm.org/D5697
mercurial/wireprotov2server.py
--- a/mercurial/wireprotov2server.py	Fri Jan 25 14:38:49 2019 -0800
+++ b/mercurial/wireprotov2server.py	Fri Jan 25 14:57:37 2019 -0800
@@ -745,7 +745,7 @@
             # More granular cache key invalidation.
             b'localversion': localversion,
             # Cache keys are segmented by command.
-            b'command': pycompat.sysbytes(command),
+            b'command': command,
             # Throw in the media type and API version strings so changes
             # to exchange semantics invalid cache.
             b'mediatype': FRAMINGTYPE,