[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: Laurent Alebarde <l.alebarde_at_free.fr>
Date: Wed, 12 Sep 2012 15:51:30 +0200

Le 12/09/2012 13:20, Stefan Sperling a écrit :
> 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!
THANKS for the warning ! So I will use a WS dummy copy to perform my
strange things with external tools, and use SVN on this copy.
>> 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.
I agree, that would be bad to require it.
Received on 2012-09-12 15:52:19 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.