so this line: (including the correct paths)
in the hook script is all I need for working copies from developers to transfer over to the webserver automatically?
The hook file should be in the hooks directory of the repository and in this case should be and executable say changing it to 'post-commit.exe' woud execute it?
I'll give this a shot.
Ryan Schmidt <firstname.lastname@example.org> wrote:
On Mar 12, 2007, at 09:21, smakawhat wrote:
>> > My understanding from what I have been googling is you can write
>> > these in any language just make it executable. I notice I think
>> > most people tend to write them in PERL.
>> > My question is how do I know what to copy in the script cause I
>> > want to copy only what is new. Being doing some Googlin and just
>> > finding lots of email examples but nothing related to copying (kind
>> > of like deploying), or use of variables, syntax meaning etc...
>> Your post-commit hook is given the path to the repository and the
>> revision number. You can pass that information to "svnlook changed"
>> to determine what changed.
>> Rather than writing the rather complicated script needed to properly
>> handle additions, modifications and removals of files and directories
>> in this fashion, you could just make the directory on the server a
>> working copy, and issue an "svn up" command in the post-commit hook
>> to get it updated.
> I decided to go with the idea of making a working copy in the
> website development server. In order to do this do I had to
> recreate a new folder and rename it cause it was what I originally
> I took my local copy on my workstation, commited the changes. I
> went to a command prompt first and used the svn up command to see
> if the file in the repository would transfer up. I typed in C:\svn
> up but I got the message: Skipped ','
> Any ideas?
So you have a working copy on the server somewhere, which is used to
serve the web site. Your web server's configuration files point at
this working copy. The working copy is in, let's say, C:\Documents
\MyWebSite, because you ran, say, "svn checkout $REPO/path/to/
Then your post-commit hook should contain the line "C:\Path\To
To reply to the mailing list, please use your mailer's Reply To All
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
Received on Tue Mar 13 15:56:44 2007