compat: add a `setbranch` compat layer for 6.4
We now need to pass a transaction argument (might be None, but must be there).
All legacy (hg-git based) Projects have been automatically migrated to native with the upgrade of 2025-01-23
We now need to pass a transaction argument (might be None, but must be there).