I'm trying to check my externals through an SVN Pre-commit hook. The svn:external contains an shared library through multiple projects. On the Pre-commit hook, I want to check if the external is pointing to a Tag directory and not to the trunk or a branch.
At my local machine in the working copy folder, I could successfully run the command:
svn propget svn:externals
This returned me the external:
https://SVNSERVER/svn/Test_Lib/trunk Test_Lib
Although this works on my local machine, I cannot use a svn command in the Pre-Commit hook, therefore I need a svnlook command.
And here starts my problem, I've tried multiple commands on my Pre-Commit hook, like:
svnlook propget %REPOS% svn:externals -t %TXN%
Fully written out that is:
svnlook propget C:\Repositories\Test_Project svn:externals -t 31-2y
I've tried multiple ways of placing the %REPOS% and %TXN%, with and without quotation marks around them ("%REPOS%", "%TXN%") and moving it before and after the svn:externals part.
Unfortunately, everything I tried results in an error message that the propname or repository path is missing
svnlook: E205001: Try 'svnlook help' for more info svnlook: E205001: Missing propname or repository path argument
I've searched Stack Overflow, and found 1 person who had the same problem, but he didn't got an answer on his question:
Trying to create a pre-commit hook that verify externals
Does anyone know the correct syntax for this, or a different way to request the svn:externals through the Pre-commit hook?