changeset 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 dba3593555e5
children e60f9168263c
files hgext/rebase.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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