changeset 50262:e27a5a012323

branch: pass current transaction when writing branch in backout command
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 02 Mar 2023 14:45:29 +0100
parents 774ed116dd7c
children 798e4314ddd9
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'):