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

Re: [ SOLVED ] strange reaction from post-commit hook

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Sun, 7 Jun 2009 23:43:46 -0500

On Jun 7, 2009, at 23:35, J. Bakshi wrote:

> Ryan Schmidt wrote:
>>
>> On Jun 5, 2009, at 07:50, J. Bakshi wrote:
>>
>>> the script should be
>>>
>>> `````````````````````````````````````````
>>> svn switch --relocate https://192.168.1.1/repos/test
>>> file:///home/SVN/testi
>>> svn up /var/www/html/POSTCOMMIT
>>> ``````````````````````````````````````````````
>>
>> The relocate command only needs to be executed once, ever. It should
>> not go in your hook script where it will be executed every time. Your
>> hook script only needs an "svn up" as before.
>
> Thanks, I will place all the relocation as init.d script. So after
> booting all relocation will be set.

It doesn't need to be done every boot either. :) It only needs to be
done once, ever. :) You've already run the command once now, so you
can delete the command from anywhere it exists. The working copy has
been relocated and will stay that way until you relocate it to
somewhere else.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-08 06:44:47 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.