diff hgext/rebase.py @ 50259:a44e489940e0

branch: pass current transaction when writing branch in rebase
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 02 Mar 2023 14:44:33 +0100
parents cad3a68c0e0c
children 9f33d12f6f48 2cd959fe631a
line wrap: on
line diff
--- a/hgext/rebase.py	Thu Mar 02 14:44:26 2023 +0100
+++ b/hgext/rebase.py	Thu Mar 02 14:44:33 2023 +0100
@@ -1502,7 +1502,9 @@
             text=commitmsg, user=user, date=date, extra=extra, editor=editor
         )
 
-        repo.dirstate.setbranch(repo[newnode].branch())
+        repo.dirstate.setbranch(
+            repo[newnode].branch(), repo.currenttransaction()
+        )
         return newnode