# HG changeset patch # User Pierre-Yves David # Date 2021-07-03 18:53:52 # Node ID 587bb99ea3114c091de5efa5c80ad468ba56f894 # Parent abed645b8e96a2f4c51ff807e541e47185343a71 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 diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -47,15 +47,6 @@ filecache = scmutil.filecache 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): """filecache for files in .hg/"""