On Feb 17, 2006, at 20:30, John Waller wrote:
> Senario:
>
> pre-commit.bat file is called
> ---> calls python script to check permissions based on non-apache-
> solution work-around for group control
>
> Well, in the pre-commit.bat file how do I get the committing user's
> name passed to the commit check?
>
> currently :
>
> svnperms.py -r %1 -t %2 -f C:\svn_repositories\crseval\conf
> \svnperms.conf || exit 1
Subversion does not inform the pre-commit hook about the name of the
committer. If you want it, obtain it using
svnlook author -t %2 %1
> svnperms.py has a < -A author > switch but I don't know how the SVN
> service interacts with the pre-commit bat file, based on the
> documentation.
According to the svnperms.py usage message
Usage: svnperms.py OPTIONS
Options:
-r PATH Use repository at PATH to check transactions
-t TXN Query transaction TXN for commit information
-f PATH Use PATH as configuration file (default is repository
path + /conf/svnperms.conf)
-s NAME Use section NAME as permission section (default is
repository name, extracted from repository path)
-R REV Query revision REV for commit information (for tests)
-A AUTHOR Check commit as if AUTHOR had commited it (for tests)
-h Show this message
the -A switch is for testing purposes and is not something you're
likely to actually need to use.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Feb 18 16:19:32 2006