D10964: dirstate: drop the now unused magic constants for the dirstate module
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sun Jul 4 21:54:37 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We no longer need them for the dirstate logic. We only need them in the
dirstate map (and parsers) logic.
This smell like progress.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10964
AFFECTED FILES
mercurial/dirstate.py
CHANGE DETAILS
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -47,15 +47,6 @@
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/"""
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list