I'm writing a pre-commit hook to make sure commits to specific branches fullfill certain criterias. To do this, I need to find out the target branch of the commit.
I am using a Windows batch file that calls a Python script. I am using a SVN Python bindings api, which is badly documented. The source code can be found here in the Python zip file: http://sourceforge.net/projects/win32svn/files/1.7.8/apache24/. Just so you know which api I mean.
I found another question about this topic: SVN Pre-commit hook for avoiding commits to specific branches. However, I don't really understand the answer and don't know how I could achieve this with tools I have available and Python.