mercurial/utils/hashutil.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 23 May 2023 10:24:57 +0200
changeset 50709 517fcefe8a39
parent 48875 6000f5b25c9b
child 51863 f4733654f144
permissions -rw-r--r--
stream-clone: add a stream-v3 variant of test-persistent-nodemap.t This will be useful to track and validate future changes to the stream-v3 protocol.

import hashlib

try:
    from ..thirdparty import sha1dc  # pytype: disable=import-error

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