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

Re: shadow directory

From: Chris Little <clittle_at_sbs.com>
Date: 2004-09-29 21:55:37 CEST

Josh Howe wrote:
>>>
>>>In VSS there's a concept called "shadow directories". Basically, you can
>>>set up a physical directory that always mirrors the latest version of
>>>the repository files. When a file is checked in, it is automatically
>>>copied to this folder. Is there anything similar in subversion? Thanks!
>>>
>>>
>>
>> You could use a post-commit hook script to do the copy(as well as many
>> other things). Not as straightforward as VSS, you have to do the work
>> but you get much more flexibility.
>
>> http://svnbook.red-bean.com/svnbook-1.0/svn-book.html#svn-ch-5-sect-2.1
>
> Thanks for the advice. I'm having a hard time getting it to work.If the path
> to the repository is $1, should file://$1 be a valid first argument to svn
> export? My script is basically svn export file://$1 path_to_shadow_folder
> --force. But it isn't working. The script is named correctly and is
> executable. Thanks!
>

Test it out by hand first to make sure it works. On my server this seems
to work. The main thing to make sure of is that the $1 ends up being an
absolute path. You didn't say what the error is, you can try having the
script redirect stdout/stderr to a file to see what the command
complains about.

This communication, including any attachments, is confidential information of SBS Technologies and intended solely for the use of the individual or entity to which it is addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message was sent to you in error, please immediately notify the sender by reply e-mail and delete this message without disclosing it. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 29 21:56:18 2004

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.