py3: use portable way to stringify cache key of repoview
authorYuya Nishihara <yuya@tcha.org>
Sun, 12 Mar 2017 17:20:42 -0700
changeset 31444 55390e97fdd2
parent 31443 0241dd94ed38
child 31445 83e080144faf
py3: use portable way to stringify cache key of repoview
mercurial/repoview.py
--- a/mercurial/repoview.py	Mon Mar 13 12:44:13 2017 -0700
+++ b/mercurial/repoview.py	Sun Mar 12 17:20:42 2017 -0700
@@ -104,7 +104,7 @@
     """
     h = hashlib.sha1()
     h.update(''.join(repo.heads()))
-    h.update(str(hash(frozenset(hideable))))
+    h.update('%d' % hash(frozenset(hideable)))
     return h.digest()
 
 def _writehiddencache(cachefile, cachehash, hidden):