comparison mercurial/wireprotov2server.py @ 41377: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 e82288a9556c
comparison
equal deleted inserted replaced
41376:56fcbac62f67 41377:e053053ceba7
743 # To invalidate all cache keys. 743 # To invalidate all cache keys.
744 b'globalversion': GLOBAL_CACHE_VERSION, 744 b'globalversion': GLOBAL_CACHE_VERSION,
745 # More granular cache key invalidation. 745 # More granular cache key invalidation.
746 b'localversion': localversion, 746 b'localversion': localversion,
747 # Cache keys are segmented by command. 747 # Cache keys are segmented by command.
748 b'command': pycompat.sysbytes(command), 748 b'command': command,
749 # Throw in the media type and API version strings so changes 749 # Throw in the media type and API version strings so changes
750 # to exchange semantics invalid cache. 750 # to exchange semantics invalid cache.
751 b'mediatype': FRAMINGTYPE, 751 b'mediatype': FRAMINGTYPE,
752 b'version': HTTP_WIREPROTO_V2, 752 b'version': HTTP_WIREPROTO_V2,
753 # So same requests for different repos don't share cache keys. 753 # So same requests for different repos don't share cache keys.