changeset 50265:240a04cedd24

branch: pass current transaction when writing branch for transaction backup This will requires more change soon (as we can simplify this backup). This will be done in later changesets.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 02 Mar 2023 14:46:37 +0100
parents 921f4834b7b5
children 307c155e6275
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Mar 02 14:46:51 2023 +0100
+++ b/mercurial/localrepo.py	Thu Mar 02 14:46:37 2023 +0100
@@ -2675,7 +2675,7 @@
             ds = self.dirstate
             if ds.branch() == b'default':
                 # force a file to be written if None exist
-                ds.setbranch(b'default')
+                ds.setbranch(b'default', None)
             # we cannot simply add "branch" to `all_file_names` because branch
             # is written outside of the transaction control. So we need to
             # backup early.