##// END OF EJS Templates
debugrebuildstate: wrap the operation in a `changing_parents` context...
marmoute -
r51008:dae8dda6 default
parent child Browse files
Show More
@@ -3142,8 +3142,8 b' def debugrebuilddirstate(ui, repo, rev, '
3142 dsnotadded = {f for f in dsonly if not dirstate.get_entry(f).added}
3142 dsnotadded = {f for f in dsonly if not dirstate.get_entry(f).added}
3143 changedfiles = manifestonly | dsnotadded
3143 changedfiles = manifestonly | dsnotadded
3144
3144
3145 dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles)
3145 with dirstate.changing_parents(repo):
3146 dirstate.write(repo.currenttransaction())
3146 dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles)
3147
3147
3148
3148
3149 @command(
3149 @command(
General Comments 0
You need to be logged in to leave comments. Login now