--- a/mercurial/repair.py Fri Jun 10 00:25:07 2016 -0400
+++ b/mercurial/repair.py Fri Jun 10 00:12:33 2016 -0400
@@ -9,6 +9,7 @@
from __future__ import absolute_import
import errno
+import hashlib
from .i18n import _
from .node import short
@@ -35,7 +36,7 @@
# Include a hash of all the nodes in the filename for uniqueness
allcommits = repo.set('%ln::%ln', bases, heads)
allhashes = sorted(c.hex() for c in allcommits)
- totalhash = util.sha1(''.join(allhashes)).hexdigest()
+ totalhash = hashlib.sha1(''.join(allhashes)).hexdigest()
name = "%s/%s-%s-%s.hg" % (backupdir, short(node), totalhash[:8], suffix)
comp = None