--- a/mercurial/repoview.py Fri Jun 10 00:25:07 2016 -0400
+++ b/mercurial/repoview.py Fri Jun 10 00:12:33 2016 -0400
@@ -9,6 +9,7 @@
from __future__ import absolute_import
import copy
+import hashlib
import heapq
import struct
@@ -18,7 +19,6 @@
obsolete,
phases,
tags as tagsmod,
- util,
)
def hideablerevs(repo):
@@ -102,7 +102,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 = util.sha1()
+ h = hashlib.sha1()
h.update(''.join(repo.heads()))
h.update(str(hash(frozenset(hideable))))
return h.digest()