Mercurial > hg
diff mercurial/repoview.py @ 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 | 4015dfc899bb |
children | 06aa645e2372 |
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):