Mercurial > hg
changeset 48101:78e66649cdb3
dirstate-item: use `added` in debugrebuilddirstate
(instead of `state`)
Differential Revision: https://phab.mercurial-scm.org/D11538
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 29 Sep 2021 17:52:39 +0200 |
parents | 571dd808c6c8 |
children | 304267b077de |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)