Mercurial > hg-stable
changeset 41399:e053053ceba7
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
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 25 Jan 2019 14:57:37 -0800 |
parents | 56fcbac62f67 |
children | e6c1c6478d04 |
files | mercurial/wireprotov2server.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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,