mercurial/debugcommands.py
changeset 48101 78e66649cdb3
parent 48089 c87844960a35
child 48116 5ced12cfa41b
--- a/mercurial/debugcommands.py	Wed Sep 29 17:42:57 2021 +0200
+++ b/mercurial/debugcommands.py	Wed Sep 29 17:52:39 2021 +0200
@@ -2960,7 +2960,7 @@
             dirstatefiles = set(dirstate)
             manifestonly = manifestfiles - dirstatefiles
             dsonly = dirstatefiles - manifestfiles
-            dsnotadded = {f for f in dsonly if dirstate[f] != b'a'}
+            dsnotadded = {f for f in dsonly if not dirstate.get_entry(f).added}
             changedfiles = manifestonly | dsnotadded
 
         dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles)