[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:

REPOS="$1"

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

URL="file://$REPOS"

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1982139

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.

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