[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: <kfogel_at_collab.net>
Date: 2005-06-15 05:42:13 CEST

"Wesley J. Landaker" <wjl@icecavern.net> writes:
> > Well -- hmmm, and that would seem to be the recipe implied in the
> > original report, too. Vincent? Can you reproduce this bug with
> > Subversion 1.2 or with head of trunk?
>
> It took me a couple tries to reproduce it. The key seems to be that "text"
> in that example WAS a text file. If it was originally a binary file, this
> doesn't happen.

Oh.

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).

A reproduction recipe that involves no symlinks:

   #!/bin/sh

   rm -rf bugdir
   mkdir bugdir
   cd bugdir

   svnadmin create repos
   svn co file://`pwd`/repos wc
   cd wc
   echo "text file" > text
   svn add text
   svn commit -m "adding a text file"
   svn diff
   cp /bin/ls text
   svn diff

This is expected behavior. There's no bug here; you can close the
issue.

Thanks,
-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 15 06:25:09 2005

This is an archived mail posted to the Subversion Dev mailing list.