##// END OF EJS Templates
dirstate: add a function to update tracking status while "moving" parents...
dirstate: add a function to update tracking status while "moving" parents The `scmutil.dirstateparent` is moving the dirstate parent without touching the working copy. It is used by history-rewriting operations like amending of folding. The function was directly doing the "low level" computation and dirstate change. All that logic belong to the dirstate and should be moved there. For this purpose we introduce a new function that does just that and use it. Differential Revision: https://phab.mercurial-scm.org/D11012

File last commit:

r47543:521ac0d7 stable
r48392:0f5c203e default
Show More
hashutil.py
10 lines | 215 B | text/x-python | PythonLexer
Augie Fackler
hashutil: new package for hashing-related features...
r44516 from __future__ import absolute_import
import hashlib
try:
Matt Harbison
typing: disable import error warnings that are already handled...
r47543 from ..thirdparty import sha1dc # pytype: disable=import-error
Augie Fackler
hashutil: new package for hashing-related features...
r44516
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1