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

Re: Changing files being committed

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-10-03 04:28:38 CEST

On 2-Oct-05, at 10:18 PM, S3 wrote:

> So, I could have the script apply the diff to the previous revision
> and run it through Jalopy. Then it could re-diff it and subversion
> could continue like normal.

No, it cant. You aren't allowed to change the diff in your hook
script. That would break the working copy.

Like I wrote before, you can only use Jalopy to verify that the
original diff is okay to commit or not. So you simply have the
option to accept the changes if they comply with the code formatting
that you want to enforce, or to reject the entire commit (with a
descriptive error message). There are advantages to this, as the
user knows that what they chose to commit is exactly what gets
committed. And of course there are also the limitations, which you
are by now well aware of.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 3 04:30:06 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.