diff -r fa04407bda7a -r a6e0b7d4ae9d hgext/git/dirstate.py --- a/hgext/git/dirstate.py Thu Mar 02 11:46:51 2023 +0100 +++ b/hgext/git/dirstate.py Thu Mar 02 11:47:18 2023 +0100 @@ -389,7 +389,7 @@ # TODO: should this be added to the dirstate interface? self._plchangecallbacks[category] = callback - def setbranch(self, branch): + def setbranch(self, branch, transaction=None): raise error.Abort( b'git repos do not support branches. try using bookmarks' )