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

Re: HOOK Script Question: how can I determine url from a transaction with SVNlook

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-02 23:42:21 CEST

On Aug 2, 2006, at 21:57, Peter Kahn wrote:

> I run a repository with http access for browsing and svnserve
> access for commits. I keep on having users checkout with http, not
> be able to check in, and then I direct them to my "svn switch --
> relocate" doc. I'd like to have the svn failure message for the
> commit return text that directs the users to that doc (so I don't
> have to). I already do this for other situations (like no checkin
> comment) via hook scripts. So, I'd like to add this one to the
> hook script as well.
> My problem is that in the hook script I can get at the local path
> to the repository and the transaction name.
> What I'd like is the url that was used.
> Is there any way for me to get at that or am I trying to reach my
> goal via the wrong path?

Presumably you have one repository which is served via both apache
and svnserve? And you want to allow commits that occurred via
svnserve but not those that occurred via apache? If apache and
svnserve run as different users, that might be one way -- if the hook
is running as the svnserve user, allow it, otherwise not.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 2 23:43:56 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.