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

RE: post-commit hook executed *only* if new tag committed?

From: Reedick, Andrew <jr9445_at_ATT.COM>
Date: 2007-12-15 00:04:55 CET

> -----Original Message-----
> From: Eric White [mailto:ewhite@ssc.wisc.edu]
> Sent: Friday, December 14, 2007 5:52 PM
> To: users@subversion.tigris.org
> Subject: post-commit hook executed *only* if new tag committed?
>
> I'm hoping to implement a post-commit script that will update files on
> a production website *only* if a new tag is assigned to my project in
> the repository.
>
> I want to be able to commit a variety of changes over time, and then
> only when I tag the repository as ready for the next production
version
> do I want the production website updated.
>
> Is this possible?
>

A tag is a branch is a directory. The post-commit hook will need to
examine what directories were checked in, determine if any of them are a
tag directory, and then run the commands to update production.

Alternately, you could have a background app run 'svn log --limit 1
svn://blah/blah/tags' every so often and look for new tags/dirs.

*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA622

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 15 00:05:44 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.