[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: Tue, 11 Sep 2012 15:49:51 +0200

On Tue, Sep 11, 2012 at 02:45:49PM +0200, Laurent Alebarde wrote:
> Thanks for your answer Stefan,
> Unfortunatly, no :
> The first link says Subversion is smart with binary files. That's
> good to hear, but do not provide a filter or filter hook between the
> workspace and the repository.

Apart from built-in properties such as svn:keywords and svn:eol-style,
there is no way to make changes to files during checkout or commit.
You can probably use a wrapper script for this purpose, however,
that wraps svn checkout, svn update, and svn commit.

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.

> The second link says it can use external diff. But that's not what I
> want to do. I just want to put a filter in the middle between the
> files to diff and the internal diff.

This is not supported. A workaround might be to use an external diff
tool and filter its output instead.
Received on 2012-09-11 15:50:29 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.