hgext/fsmonitor/__init__.py
branchstable
changeset 43393 bdebc7b54dca
parent 43391 ffdf0bf28212
child 43395 2b8be670dcb6
--- a/hgext/fsmonitor/__init__.py	Sat Nov 02 13:34:40 2019 -0700
+++ b/hgext/fsmonitor/__init__.py	Sat Nov 02 13:39:23 2019 -0700
@@ -236,8 +236,8 @@
 
     """
     sha1 = hashlib.sha1()
-    sha1.update(repr(ignore))
-    return sha1.hexdigest()
+    sha1.update(pycompat.byterepr(ignore))
+    return pycompat.sysbytes(sha1.hexdigest())
 
 
 _watchmanencoding = pywatchman.encoding.get_local_encoding()