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

Re: Getting SVN URL in Precommit hook

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Wed, 29 Apr 2009 11:23:42 -0500

On Apr 29, 2009, at 06:57, Sunil.SHARMA_at_rbs.com wrote:

> I am trying to create a utility that checks before every commit if
> there is a file present in the base path of the repository on the
> server. For this I need to know if there is any mechanism to get
> the url for the svn path I am commiting to in my pre commit hook
> utility?

Your hook script is given the filesystem path to the repository in
the first parameter:


Therefore, a valid URL to the repository that you can use in your
hook is:



To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-29 18:26:49 CEST

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