# HG changeset patch # User Yuya Nishihara # Date 2017-03-13 00:20:42 # Node ID 55390e97fdd2fe44bc5e9072c96c3efbf823c7b2 # Parent 0241dd94ed386b3c68cc6883413a359270587925 py3: use portable way to stringify cache key of repoview diff --git a/mercurial/repoview.py b/mercurial/repoview.py --- a/mercurial/repoview.py +++ b/mercurial/repoview.py @@ -104,7 +104,7 @@ def cachehash(repo, hideable): """ 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):