diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py --- a/mercurial/wireprotov2server.py +++ b/mercurial/wireprotov2server.py @@ -390,7 +390,8 @@ return with cacher: - cachekey = entry.cachekeyfn(repo, proto, cacher, **args) + cachekey = entry.cachekeyfn(repo, proto, cacher, + **pycompat.strkwargs(args)) # No cache key or the cacher doesn't like it. Do default handling. if cachekey is None or not cacher.setcachekey(cachekey):