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

Re: Is it possible to set svn:keywords using pre-commit hook script?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 11 Nov 2008 13:15:45 -0500

On Tue, Nov 11, 2008 at 13:02, vinay i <vinay.indresh_at_gmail.com> wrote:
> Hello All,
>
> I would like to set svn:keywords on all known non-binary files (if it is not
> already set) during a commit. Is this feasible? Because pre-commit hook
> script takes two arguments as inputs ( repository and transaction) and
> doesn't have information regarding the files being committed. How to
> identify the list of files on which the svn:keywords property has to be set?

Modifying transactions in-flight should not be done, for many reasons
which have been discussed many times on this mailing list. If a commit
doesn't conform to your rules, reject the commit & send a message back
to the client indicating why it was rejected.

You need to use svnlook changed and svnlook diff to inspect what changed.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-11 19:16:11 CET

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.