Mercurial > hg
view mercurial/utils/hashutil.py @ 45404:c4a4a49589bf
storageutil: allow modern hash sizes for fileids
Differential Revision: https://phab.mercurial-scm.org/D8783
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Tue, 21 Jul 2020 22:41:45 +0200 |
parents | 7126d8b8e0e6 |
children | 521ac0d7047f |
line wrap: on
line source
from __future__ import absolute_import import hashlib try: from ..thirdparty import sha1dc sha1 = sha1dc.sha1 except (ImportError, AttributeError): sha1 = hashlib.sha1