##// END OF EJS Templates
rust-revlog: move non-persistent-nodemap rev lookup to the index...
rust-revlog: move non-persistent-nodemap rev lookup to the index It only uses index features and does not need to be on the revlog. A later patch will make use of this function from a different context.

File last commit:

r52755:607e94e0 default
r53070:1da69958 default
Show More
hashutil.py
10 lines | 211 B | text/x-python | PythonLexer
from __future__ import annotations
import hashlib
try:
from ..thirdparty import sha1dc # pytype: disable=import-error
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1