mercurial/dirstatemap.py
changeset 47530 a1745a292885
parent 47529 d3cf20328abd
child 47535 6025353c9c55
--- a/mercurial/dirstatemap.py	Sun Jul 04 01:58:03 2021 +0200
+++ b/mercurial/dirstatemap.py	Sun Jul 04 01:59:41 2021 +0200
@@ -147,7 +147,6 @@
     def addfile(
         self,
         f,
-        state=None,
         mode=0,
         size=None,
         mtime=None,
@@ -180,9 +179,9 @@
             size = NONNORMAL
             mtime = AMBIGUOUS_TIME
         else:
-            assert state != b'a'
             assert size != FROM_P2
             assert size != NONNORMAL
+            state = b'n'
             size = size & rangemask
             mtime = mtime & rangemask
         assert state is not None
@@ -475,7 +474,6 @@
         def addfile(
             self,
             f,
-            state=None,
             mode=0,
             size=None,
             mtime=None,
@@ -486,7 +484,6 @@
         ):
             return self._rustmap.addfile(
                 f,
-                state,
                 mode,
                 size,
                 mtime,