mercurial/utils/hashutil.py
author Kyle Lippincott <spectral@google.com>
Tue, 17 Mar 2020 12:59:31 -0700
changeset 44567 ad5a10f49dfa
parent 44059 7126d8b8e0e6
child 46785 521ac0d7047f
permissions -rw-r--r--
chistedit: support histedit.summary-template in curses histedit plan Differential Revision: https://phab.mercurial-scm.org/D8296

from __future__ import absolute_import

import hashlib

try:
    from ..thirdparty import sha1dc

    sha1 = sha1dc.sha1
except (ImportError, AttributeError):
    sha1 = hashlib.sha1