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.
| No Linters Available |
| No Unit Test Coverage |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/dirstate.py (9 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| 24b89d4632c2 | 73716aadd3d5 | Pierre-Yves David | Jul 3 2021, 2:53 PM |
| 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) | ||||