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

Re: Clarification on checkout and post-commit update hook

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Fri, 21 Aug 2009 01:08:54 +0400

Greetings, Dan King!

> I just installed and setup subversion on a windows server. I'd like to
> configure svn so that every 'commit' is reflected via update in the
> appropriate folder within the (web) server. The directory structure of the
> repository is below, and this structure is mimicked by the htdocs folder.
> When I checkout the folders/files from the repository into the web server's
> htdocs directory (i.e. the web server's 'working' directory), is there any
> particular way I should perform the checkout? Also, from my readings, I
> understand that I'll need a post-commit update hook; I'm not familiar with
> batch files so if anyone has done this before or knows of a good example
> please let me knows. Thanks.

Run something like this in post-commit

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

But take a note that it is not safe approach at deployment.
Accidental commit of malicious or destructive code could paralyze your work.

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 21.08.2009, <1:05>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385797
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-20 23:10:55 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.