mercurial/localrepo.py
changeset 50265 240a04cedd24
parent 50195 11e6eee4b063
child 50267 f92afdf3cff9
--- 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.