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

Re: Git smudge / Clean / Filter alike in Subversion ?

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 12 Sep 2012 13:20:28 +0200

On Wed, Sep 12, 2012 at 11:41:05AM +0200, Laurent Alebarde wrote:
> I could find examples of pre-commit hooks, for example to convert
> indentation from spaces to tabs or the opposite.

This is very wrong. Pre-commit hooks are not supposed to modify
the content of commit transactions. Doing so causes the working
copy and the repository to get out of sync, having conflicting
ideas about what was committed. Don't do this!

> Then I could find
> the lists of available hooks in the documentation. If I am not
> mistaken, there is no hook available in the opposite direction, say
> in the check-out process ?

No, there are no hooks during checkout.

TortoiseSVN has client-side hooks, however. You might be able
to leverage those. But I don't know details of how they work.
And this would force all developers to use TortoiseSVN.
Received on 2012-09-12 13:21:09 CEST

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.