[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 when a new tag is created

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Tue, 7 Oct 2008 16:24:12 -0500

On Oct 7, 2008, at 05:38, Bogdan Cristea wrote:

> I am trying to write a simple post-commit hook so that each
> time a tag
> version of our project is created an e-mail is automatically send
> and an
> archive should be created with all files from this tag. Our
> repository has
> three folders, trunk, tags, branches. While the task of sending an
> e-mail
> every time a commit is made is straightforward, in my case I need more
> specific actions:
>
> 1. call the hook script only when a new tag is created in the tags
> folder
> 2. create an archive containing only the project structure (folders
> and files)
> as saved in the tagged version

This is not hard to do. The hook script will be called every time any
commit is made, but in it you can run "svnlook dirs-changed" to see
if the tags directory is one that was changed, and only do your
emailing and archiving then.

> hot-backup.py script does create an archive, but the entire
> repository is
> saved, including files generated by svnadmin. Viewvc has this
> feature, of
> creating an archive from a selected version, but I don't know how
> to use that
> feature in my script.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-07 23:24:34 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.