changeset 50262 | e27a5a012323 |
parent 50261 | 774ed116dd7c |
child 50301 | 9fc0d244a753 |
child 50371 | 4a73df6eb67d |
--- a/mercurial/commands.py Thu Mar 02 14:45:21 2023 +0100 +++ b/mercurial/commands.py Thu Mar 02 14:45:29 2023 +0100 @@ -837,7 +837,7 @@ return 1 else: hg.clean(repo, node, show_stats=False) - repo.dirstate.setbranch(branch) + repo.dirstate.setbranch(branch, repo.currenttransaction()) cmdutil.revert(ui, repo, rctx) if opts.get(b'no_commit'):