diff --git a/vcsserver/remote/hg.py b/vcsserver/remote/hg.py --- a/vcsserver/remote/hg.py +++ b/vcsserver/remote/hg.py @@ -1143,7 +1143,7 @@ class HgRemote(RemoteBase): if is_root: matcher = alwaysmatcher(badfn=None) else: - matcher = patternmatcher('', [(b'glob', path+'/**', b'')], badfn=None) + matcher = patternmatcher('', [(b'glob', safe_bytes(path)+b'/**', b'')], badfn=None) file_iter = ctx.manifest().walk(matcher) for fn in file_iter: