##// END OF EJS Templates
dirstate-item: use `added` in debugrebuilddirstate...
marmoute -
r48913:78e66649 default
parent child Browse files
Show More
@@ -2960,7 +2960,7 b' def debugrebuilddirstate(ui, repo, rev, '
2960 dirstatefiles = set(dirstate)
2960 dirstatefiles = set(dirstate)
2961 manifestonly = manifestfiles - dirstatefiles
2961 manifestonly = manifestfiles - dirstatefiles
2962 dsonly = dirstatefiles - manifestfiles
2962 dsonly = dirstatefiles - manifestfiles
2963 dsnotadded = {f for f in dsonly if dirstate[f] != b'a'}
2963 dsnotadded = {f for f in dsonly if not dirstate.get_entry(f).added}
2964 changedfiles = manifestonly | dsnotadded
2964 changedfiles = manifestonly | dsnotadded
2965
2965
2966 dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles)
2966 dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles)
General Comments 0
You need to be logged in to leave comments. Login now