branch: pass current transaction when writing branch in rebase
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 02 Mar 2023 14:44:33 +0100
changeset 50259 a44e489940e0
parent 50258 dba3593555e5
child 50260 e60f9168263c
branch: pass current transaction when writing branch in rebase
hgext/rebase.py
--- 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