changeset 31444:55390e97fdd2

py3: use portable way to stringify cache key of repoview
author Yuya Nishihara <yuya@tcha.org>
date Sun, 12 Mar 2017 17:20:42 -0700
parents 0241dd94ed38
children 83e080144faf
files mercurial/repoview.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):