##// END OF EJS Templates
dirstate: drop some duplicated code...
dirstate: drop some duplicated code The same operation is done a handful a line lower. Differential Revision: https://phab.mercurial-scm.org/D11589

File last commit:

r47543:521ac0d7 stable
r48957:180e8fa3 default
Show More
hashutil.py
10 lines | 215 B | text/x-python | PythonLexer
from __future__ import absolute_import
import hashlib
try:
from ..thirdparty import sha1dc # pytype: disable=import-error
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1