mercurial/utils/storageutil.py
changeset 44060 a61287a95dc3
parent 43077 687b865b95ad
child 44452 9d2b2df2c2ba
--- a/mercurial/utils/storageutil.py	Mon Jan 13 17:14:19 2020 -0500
+++ b/mercurial/utils/storageutil.py	Mon Jan 13 17:15:14 2020 -0500
@@ -7,7 +7,6 @@
 
 from __future__ import absolute_import
 
-import hashlib
 import re
 import struct
 
@@ -24,8 +23,9 @@
     pycompat,
 )
 from ..interfaces import repository
+from ..utils import hashutil
 
-_nullhash = hashlib.sha1(nullid)
+_nullhash = hashutil.sha1(nullid)
 
 
 def hashrevisionsha1(text, p1, p2):
@@ -48,7 +48,7 @@
         else:
             a = p2
             b = p1
-        s = hashlib.sha1(a)
+        s = hashutil.sha1(a)
         s.update(b)
     s.update(text)
     return s.digest()