Login | Register
My pages Projects Community openCollabNet

Discussions > users [DISABLED] > Re: Getting SVN URL in Precommit hook

subversion
Discussion topic

Back to topic list

Re: Getting SVN URL in Precommit hook

Author ryandesign
Full name Ryan Schmidt
Date 2009-04-29 09:25:02 PDT
Message On Apr 29, 2009, at 06:57, Sunil dot SHARMA at rbs dot 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"

« Previous message in topic | 2 of 3 | Next message in topic »

Messages

Show all messages in topic

Getting SVN URL in Precommit hook <Sunil dot SHARMA at rbs dot com> <Sunil dot SHARMA at rbs dot com> 2009-04-29 04:57:37 PDT
     Re: Getting SVN URL in Precommit hook ryandesign Ryan Schmidt 2009-04-29 09:25:02 PDT
     Re: Getting SVN URL in Precommit hook David Weintraub <qazwart at gmail dot com> David Weintraub <qazwart at gmail dot com> 2009-04-29 12:28:52 PDT
Messages per page: