We no longer need them for the dirstate logic. We only need them in the
dirstate map (and parsers) logic.
This smell like progress.
SimonSapin | |
pulkit |
hg-reviewers |
We no longer need them for the dirstate logic. We only need them in the
dirstate map (and parsers) logic.
This smell like progress.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/dirstate.py (9 lines) |
SUPPORTS_DIRSTATE_V2 = rustmod is not None | SUPPORTS_DIRSTATE_V2 = rustmod is not None | ||||
propertycache = util.propertycache | propertycache = util.propertycache | ||||
filecache = scmutil.filecache | filecache = scmutil.filecache | ||||
_rangemask = dirstatemap.rangemask | _rangemask = dirstatemap.rangemask | ||||
dirstatetuple = parsers.dirstatetuple | dirstatetuple = parsers.dirstatetuple | ||||
# a special value used internally for `size` if the file come from the other parent | |||||
FROM_P2 = dirstatemap.FROM_P2 | |||||
# a special value used internally for `size` if the file is modified/merged/added | |||||
NONNORMAL = dirstatemap.NONNORMAL | |||||
# a special value used internally for `time` if the time is ambigeous | |||||
AMBIGUOUS_TIME = dirstatemap.AMBIGUOUS_TIME | |||||
class repocache(filecache): | class repocache(filecache): | ||||
"""filecache for files in .hg/""" | """filecache for files in .hg/""" | ||||
def join(self, obj, fname): | def join(self, obj, fname): | ||||
return obj._opener.join(fname) | return obj._opener.join(fname) | ||||