# HG changeset patch # User Augie Fackler # Date 1408555301 14400 # Node ID eba48f2b9b74822535ece16f04a711c2f45d5aeb # Parent 2229d757802d10db6b9f7a0cd2700be4fa994949 repoview: use util.sha1() instead of hashlib.sha1() 45b5cd948a4d accidentally broke Python 2.4 compatibility, this fixes it. diff -r 2229d757802d -r eba48f2b9b74 mercurial/repoview.py --- a/mercurial/repoview.py Mon Aug 18 17:17:23 2014 -0700 +++ b/mercurial/repoview.py Wed Aug 20 13:21:41 2014 -0400 @@ -8,7 +8,6 @@ import copy import error -import hashlib import phases import util import obsolete @@ -69,8 +68,7 @@ it to the cache. Upon reading we can easily validate by checking the hash against the stored one and discard the cache in case the hashes don't match. """ - h = hashlib.sha1() - h.update(''.join(repo.heads())) + h = util.sha1(''.join(repo.heads())) h.update(str(hash(frozenset(hideable)))) return h.digest()