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

Re: hook deployment script

From: Jan Hendrik <jan.hendrik_at_myrealbox.com>
Date: 2007-03-10 10:23:45 CET

Concerning hook deployment script
smakawhat wrote on 9 Mar 2007, 11:39, at least in part:

> Hey all,
> I already emailed the list in regards to some basic concepts of
> subversion. I am at the point where I am discovering that in order
> to get the changes made commited to the repository I will need to
> use something like a post commit hook script.
> 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...
> If anyone has any examples, a different idea on how to do this, or
> point me in the correct direction on this I'd appreciate it. This
> is for a Windows environment.

I have not done this actually, but the post-commit hook knows the
revision number of the commit, which in turn can be used for
svnlook to serve a list files modified/deleted/added in that specific
commit. This list of course can then be parsed by your script. I
am not sure if there is a Perl module for directly working on SVN
repositories, so you may have to use an OS command for svnlook
(Python: os.system("svnlook changed -r xxx")).


Freedom quote:

     If some among you fear taking a stand
     because you are afraid of reprisals
     from customers, clients, or even government,
     recognize that you are just feeding the crocodile
     hoping he'll eat you last.
               -- Ronald Reagan

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Mar 10 10:23:36 2007

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.