[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: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-08-02 22:03:19 CEST

On 8/2/06, Peter Kahn <citizenkahn@gmail.com> wrote:
> How can I add custom text to the error output for a commit?
>
> 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?

svnlook doesn't have access to that information. It just doesn't
exist at that level. You'll have to encode that logic into your hook
script, based on your knowledge of the repository's URL.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 2 22:09:29 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.