Mercurial > hg
comparison mercurial/dirstate.py @ 47522:587bb99ea311
dirstate: drop the now unused magic constants for the dirstate module
We no longer need them for the dirstate logic. We only need them in the
dirstate map (and parsers) logic.
This smell like progress.
Differential Revision: https://phab.mercurial-scm.org/D10964
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Jul 2021 20:53:52 +0200 |
parents | abed645b8e96 |
children | b76d54b90dc9 |
comparison
equal
deleted
inserted
replaced
47521:abed645b8e96 | 47522:587bb99ea311 |
---|---|
44 propertycache = util.propertycache | 44 propertycache = util.propertycache |
45 filecache = scmutil.filecache | 45 filecache = scmutil.filecache |
46 _rangemask = dirstatemap.rangemask | 46 _rangemask = dirstatemap.rangemask |
47 | 47 |
48 dirstatetuple = parsers.dirstatetuple | 48 dirstatetuple = parsers.dirstatetuple |
49 | |
50 # a special value used internally for `size` if the file come from the other parent | |
51 FROM_P2 = dirstatemap.FROM_P2 | |
52 | |
53 # a special value used internally for `size` if the file is modified/merged/added | |
54 NONNORMAL = dirstatemap.NONNORMAL | |
55 | |
56 # a special value used internally for `time` if the time is ambigeous | |
57 AMBIGUOUS_TIME = dirstatemap.AMBIGUOUS_TIME | |
58 | 49 |
59 | 50 |
60 class repocache(filecache): | 51 class repocache(filecache): |
61 """filecache for files in .hg/""" | 52 """filecache for files in .hg/""" |
62 | 53 |