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

Re: How to Modify the transaction file

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-07-12 14:29:50 CEST

On 7/12/07, Dong Jiwei <dongjiwei@keithley.com> wrote:
> Hi all,
>
> I want to write a hook that can modify the file to be committed, for
> example, it the file is a shell script, then I want to add one line "echo
> $END_DATE" at the file end.
> How can I got the file and modify it in hooks?

Don't.

> And one more question is will this operation cause the inconsistence
> between the WC and REOPS?

Yes, and that's why you shouldn't do it. When the user commits a file
to the repository, upon completion of the commit, the version in their
WC should match what's in the repository. If you do this, that will be
broken.

IOW, you'll be forcing your users to run svn up after every commit,
because they won't have any idea what their file actually looks like
after the commit - which they should.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 12 14:29:27 2007

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.