changeset 50113 | dae8dda6f582 |
parent 50000 | 1f28172cfce9 |
child 50317 | af776c3d5c3e |
--- a/mercurial/debugcommands.py Sun Feb 19 02:50:46 2023 +0100 +++ b/mercurial/debugcommands.py Mon Feb 20 14:05:19 2023 +0100 @@ -3142,8 +3142,8 @@ dsnotadded = {f for f in dsonly if not dirstate.get_entry(f).added} changedfiles = manifestonly | dsnotadded - dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles) - dirstate.write(repo.currenttransaction()) + with dirstate.changing_parents(repo): + dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles) @command(