But isn't there a way I can set the svn:keywords by running a script
whenever I do a add or probably before a commit. Controlling this from a
client side is painful. Hence, I would like to write script which will run
svn propset svn:keywords <filenames>. But I am not sure whether it is
feasible.
Please let me know your thoughts
Thanks
Vinay
On Tue, Nov 11, 2008 at 11:45 PM, Andy Levy <andy.levy_at_gmail.com> wrote:
> 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.
>
Received on 2008-11-11 20:07:49 CET