mercurial/utils/hashutil.py
author Pulkit Goyal <7895pulkit@gmail.com>
Tue, 14 Jul 2020 15:42:28 +0530
changeset 45168 4f71d1a99e45
parent 44059 7126d8b8e0e6
child 46785 521ac0d7047f
permissions -rw-r--r--
merge: document return values of manifestmerge() and calculateupdates() In future patches, I want to add one more return value which represents information which needs to stored and used at commit time. Differential Revision: https://phab.mercurial-scm.org/D8741

from __future__ import absolute_import

import hashlib

try:
    from ..thirdparty import sha1dc

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