diff mercurial/interfaces/dirstate.py @ 50256:a6e0b7d4ae9d

dirstate: write the `branch` as part of the transaction if any Bypassing the transaction means we could get out of sync with the dirstatemap content. The branch is stil written right away if no transaction is around, but at least it no longer bypass the transaction. Actual caller of this still need to be updated.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 02 Mar 2023 11:47:18 +0100
parents 3f3fca243dca
children 79cd29d598af
line wrap: on
line diff
--- a/mercurial/interfaces/dirstate.py	Thu Mar 02 11:46:51 2023 +0100
+++ b/mercurial/interfaces/dirstate.py	Thu Mar 02 11:47:18 2023 +0100
@@ -123,7 +123,7 @@
         See localrepo.setparents()
         """
 
-    def setbranch(branch):
+    def setbranch(branch, transaction=None):
         pass
 
     def invalidate():