view mercurial/utils/hashutil.py @ 50813:4ee64ff1d49f stable

revlog: show that temporary split file use broken name scheme The `-s` is added on the wrong part and the `.i` is missing.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 21 Jul 2023 15:15:43 +0200
parents 6000f5b25c9b
children f4733654f144
line wrap: on
line source

import hashlib

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

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