##// END OF EJS Templates
rhg: set the expected dirstate permissions (0o666 minus umask)...
rhg: set the expected dirstate permissions (0o666 minus umask) This is what Python code does, and users in multiuser environments rely on this behavior. (we've been maintaining a private patch that fixes this for a long time)

File last commit:

r52755:607e94e0 default
r53242:a48c688d 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