Mercurial > hg
view mercurial/utils/hashutil.py @ 51497:9da3fcc5f70f stable
test-lock: use synchronisation file instead of sleep
This will prevent the test to be flaky on load.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 11 Mar 2024 16:05:28 +0100 |
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