I'm working on SVN repository hooks. Here is the typical structure of repository:
trunk/
branches/
branch1/
branch2/
In pre-commit hook I need to detect if merge (between branches, from branch to trunk or vice-versa) has been performed and check if user is authorized to perform merge.
I discovered that merge changes 'svn:mergeinfo' property of destination directory. So, I have to parse commit changeset, detect dir's property change and check if 'svn:mergeinfo' property has changed since the last commit.
All this seems too complicated. Is there more convenient way to detect merge?