Mercurial > public > mercurial-scm > hg
view mercurial/utils/hashutil.py @ 50515:f2bcb56a1d39
stream-clone: make sure the `stream` capability is set when bundling
This is important to start narrowing protocol option in the next changesets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 21 May 2023 01:03:19 +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