view mercurial/utils/hashutil.py @ 46265:8045e4aa366b

test: extract the `genmerges` out of test-merge-combination.t This open the way to splitting this slow test in multiple ones. Differential Revision: https://phab.mercurial-scm.org/D9767
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 14 Jan 2021 11:33:09 +0100
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