diff hgext/git/dirstate.py @ 51273:79cd29d598af

dirstate: make the `transaction` argument of `setbranch` mandatory This is deprecated since 6.4. We should drop it now.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 12 Dec 2023 17:08:45 +0100
parents 39eb3aab3e63
children
line wrap: on
line diff
--- a/hgext/git/dirstate.py	Wed Dec 20 14:59:31 2023 +0100
+++ b/hgext/git/dirstate.py	Tue Dec 12 17:08:45 2023 +0100
@@ -389,7 +389,7 @@
         # TODO: should this be added to the dirstate interface?
         self._plchangecallbacks[category] = callback
 
-    def setbranch(self, branch, transaction=None):
+    def setbranch(self, branch, transaction):
         raise error.Abort(
             b'git repos do not support branches. try using bookmarks'
         )