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

Re: Serverside Scripting

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2006-03-07 21:27:31 CET

On 3/7/06, chinmayareddy@gmail.com <chinmayareddy@gmail.com> wrote:
> Hi,
> Can anyone please tell me if Subversion supports server side scripting ?
>
> My requirements are
>
> *) if a source file has variables like $Revision $Author that should get
> replaced with commit version and author name. Something similar to what CVS
> supports

Use keywords for this. A commit script should not modify the contents
of a file being committed, because then the repository won't ever
match the developer's working copy.
http://svnbook.red-bean.com/en/1.0/ch07s02.html

> *) Assuming my developers are responsible and provide good logging
> information on every commit, I would like to consolidate for easy reference.
> Essentially on server side, on every commit, I would like to update one or
> more files in repository with current commit version, log text info etc.

Again, a commit script modifying the repository is generally a bad
idea unless you can separate very strongly the files being committed
from the second update that the script is doing.

The "server side scripting" you're looking for is a feature called
"hooks" and these are pretty well-documented in Subversion resources
such as The Book (http://svnbook.org/).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 7 21:28:37 2006

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.