D5697: wireprotov2server: don't attempt to cast command name
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sat Jan 26 00:01:28 UTC 2019
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
I'm not sure why this was added. The command name should already
be bytes.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5697
AFFECTED FILES
mercurial/wireprotov2server.py
CHANGE DETAILS
diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py
--- a/mercurial/wireprotov2server.py
+++ b/mercurial/wireprotov2server.py
@@ -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,
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list