[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: Ryan Schmidt <subversion-2012c_at_ryandesign.com>
Date: Tue, 11 Sep 2012 10:47:08 -0500

On Sep 11, 2012, at 09:48, Laurent Alebarde wrote:

> Le 11/09/2012 15:49, Stefan Sperling a écrit :
>> What do you really need this feature for? I'm interested in learning
>> more about your actual use case, the actual problem you're trying to
>> solve, rather than what git's solution to your problem is. Maybe if
>> I knew more about the problem itself I could give you a better answer.
>> And maybe we can add some feature to svn to solve your problem, once we
>> understand the problem.
> Sure, you are right. At present time, my use cases are :
> 1) Automatic coding style refactoring so that developpers remain happy with what they are used to : indentation, naming, layout, etc.

The usual Subversion solution for this is to either

a) write a pre-commit hook that verifies that the code conforms to the style guidelines, and rejects the commit if it does not; or
b) write a post-commit hook that converts code to the required style and commits this in a second revision

> 2) Automatic doxygen comments generation.

Here too the usual Subversion solution is to have a post-commit hook generate this and then commit it. Another common answer is that things that can be generated should not be stored in the repository.

> 3) Add information in the code in the workspace, from tags included in the repository

I don't understand... could you give an example?
Received on 2012-09-11 17:47:44 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.