changeset 50260:e60f9168263c

branch: pass current transaction when writing branch in merge
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 02 Mar 2023 14:44:43 +0100
parents a44e489940e0
children 774ed116dd7c
files mercurial/merge.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/merge.py	Thu Mar 02 14:44:33 2023 +0100
+++ b/mercurial/merge.py	Thu Mar 02 14:44:43 2023 +0100
@@ -2229,7 +2229,9 @@
                 util.unlink(repo.vfs.join(b'updatestate'))
 
                 if not branchmerge:
-                    repo.dirstate.setbranch(p2.branch())
+                    repo.dirstate.setbranch(
+                        p2.branch(), repo.currenttransaction()
+                    )
 
                 # If we're updating to a location, clean up any stale temporary includes
                 # (ex: this happens during hg rebase --abort).