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

Re: cannot get post-commit.tmpl to work

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-10-29 16:52:15 CEST

On Oct 28, 2005, at 20:44, Zouari Fourat wrote:

> am using this to do Revision number insertion in source code when
> committing :

Nope. Definitely not. You cannot change a transaction in a hook. It's
not designed for that. All you can do in a post-commit hook is notify
by email that the commit has happened, or update a working copy, or
something like that. By the time the post-commit hook has been
called, the commit has already completely taken place. The pre-commit
hook is also not the place to look to do this.

What you want to do is to stop writing hook scripts and read this FAQ:

http://subversion.tigris.org/faq.html#version-value-in-source

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 29 16:57:57 2005

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.