[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

pre-commit hook problem - username handling from SVN service on repository

From: John Waller <jwaller_at_academicmanagement.com>
Date: 2006-02-17 20:30:39 CET

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

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.

I found solution that calls for a command like as follows:

svnlook author <repo>

I have thought about in the python script to call the svnlook command
and redirect the output to the author commit check .... but is there an
easier way of doing this? Also, it doesn't make much sense to me to look
at svnlook author <repo>, because that command simply looks at the
current commiting project on the machine vs. the passed in username ....

help?

Basically ... need username from either the Windows environment that is
passed in from the remote host that is committing to the Windows server,
or a way to get that information from a command like svnlook .....

- John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 17 20:33:16 2006

This is an archived mail posted to the Subversion Users mailing list.