Philip Martin <firstname.lastname@example.org> writes:
> Really? So what is the correct behaviour? Are you suggesting that
> the client uses the svn:mime-type of the link destination rather than
> the link itself? What happens if the destination is not versioned?
It hadn't occurred to me that it mattered if the destination is
versioned. The method I was envisioning was:
When running 'svn diff' on a link, determine the textyness of the
link target on the fly, using the same svn_io_detect_mimetype() method
that we use at add/import time, and do not show the diff if the target
is not texty.
But now that you mention it, we should treat versioned destinations
differently from unversioned ones. If the dest is versioned, then
just determine textyness by examining the file's properties as usual;
if it's unversioned, then follow the above recipe.
> How did you reproduce the bug anyway?
> $ svnadmin create repo
> $ svn co file://`pwd`/repo wc
> Checked out revision 0.
> $ cp /bin/ls wc/dst
> $ svn add wc/dst
> A (bin) wc/dst
> $ ln -sf dst wc/src
> $ svn add wc/src
> A wc/src
> $ svn diff wc
> Index: wc/src
> --- wc/src (revision 0)
> +++ wc/src (revision 0)
> @@ -0,0 +1 @@
> +link dst
> \ No newline at end of file
> Property changes on: wc/src
> Name: svn:special
> + *
> Index: wc/dst
> Cannot display: file marked as a binary type.
> svn:mime-type = application/octet-stream
> Property changes on: wc/dst
> Name: svn:executable
> + *
> Name: svn:mime-type
> + application/octet-stream
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?
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Tue Jun 14 20:34:10 2005