Submitter | phabricator |
---|---|
Date | Oct. 1, 2021, 9:42 a.m. |
Message ID | <differential-rev-PHID-DREV-khjkhv7xw35hk6axqx6t-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/49864/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -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)