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

"svn diff" fails after creating a symlink to a non-file

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2005-02-16 14:57:01 CET

I did:

dixsept:~/wd/mpfr> ln -s web/mpfr-2.1.0 current
dixsept:~/wd/mpfr> svn add current
A current

But "svn diff" fails:

dixsept:~/wd/mpfr> svn diff
svn: Can't read file 'current': Is a directory
zsh: exit 1 svn diff

Ditto when the destination doesn't exist:

dixsept:~/wd/mpfr> ln -s foo bar
dixsept:~/wd/mpfr> svn add bar
A bar
dixsept:~/wd/mpfr> svn diff
svn: Can't open file 'bar': No such file or directory
zsh: exit 1 svn diff

When the link is on a (real) file, "svn diff" doesn't fail, but
outputs a diff on the contents of the file instead of a diff on
the link value (which would probably better IMHO, and would work
in a more consistent way).

When the diff is done server-side, there are no problems:

dixsept:~/wd/mpfr> svn diff -r6279:6280
Index: current
===================================================================
--- current (revision 0)
+++ current (revision 6280)
@@ -0,0 +1 @@
+link web/mpfr-2.1.0
\ No newline at end of file

Property changes on: current
___________________________________________________________________
Name: svn:special
   + *

Should I fill a bug report on the issue tracker?
Searching on diff link returned no results.

I'm using svn, version 1.1.3 (r12730), latest Debian package.

-- 
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 Feb 16 14:58:47 2005

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