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

Re: Strip trailing whitespace

From: Greg Hudson <ghudson_at_mit.edu>
Date: Tue, 06 Oct 2009 10:18:04 -0400

On Tue, 2009-10-06 at 09:57 -0400, Olaf van der Spek wrote:
> On Tue, Oct 6, 2009 at 3:37 PM, Julian Foad <julianfoad_at_btopenworld.com> wrote:
> > It is possible to write a pre-commit hook to CHECK for this and reject
> > the commit, but I think you want to automatically EDIT the source files.
> > This would have to be done on the client side. Although Subversion
> I'm indeed looking for an automatic solution. Why would this have to
> be done client-side?

Julian probably should have redirected you to the users@ list, but I'll
answer this question since it bears slightly on development.

Right now, pre-commit hooks cannot edit content. If they manage to do
so somehow, then the result will be that the committing working copy
will be invalid (will have the wrong text bases for the new revision).
It might be possible to extend the architecture to allow content editing
in pre-commit hooks, but it would not be easy.

Received on 2009-10-06 16:18:26 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.