dirstate: drop the now unused magic constants for the dirstate module
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 03 Jul 2021 20:53:52 +0200
changeset 47522 587bb99ea311
parent 47521 abed645b8e96
child 47523 b76d54b90dc9
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
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Sun Jul 04 20:23:19 2021 +0200
+++ b/mercurial/dirstate.py	Sat Jul 03 20:53:52 2021 +0200
@@ -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/"""