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

Re: BUG(?): "svn diff" behaves incorrectly on symbolic links pointing to binary files

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2005-06-15 13:45:54 CEST

On 2005-06-14 22:42:13 -0500, kfogel@collab.net wrote:
> This behavior has nothing to do with symlinks. If you 'svn add' a
> text file, then replace its contents with binary data, Subversion
> never finds out that it changed from text to binary, and will happily
> diff it (unhappily for the user, of course).

Concerning this point, I think this is a bug (but a different one):
if in the diff, there are non-printable characters, then they should
be filtered out when the output is a tty. Otherwise this can mess up
the terminal. (I'm not sure whether this problem is unix-specific or
more general...)

Other unix commands already do such kind of things, e.g. less (for
file contents), and ls and find (for filenames). Some commands (e.g.
diff and grep) just detect binary files, but this is not sufficient.

Vincent Lefèvre <vincent_at_vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 15 13:46:52 2005

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.