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

Oddity with svn diff on moved/renamed files

From: Bas Mevissen <sgm_at_basmevissen.nl>
Date: 2004-04-08 10:51:59 CEST


On request of Ben Sussman, I would like to document a case of strange
behaviour of the svn diff command. I've discussed this last night with Ben
on IRC.

A working copy of a subversion archive contains some files. One of them
(parser.c) is renamed to a different name (config.c). Subversion version
from 1.0.1-1 package on Fedora Core 1, packaged by David Summers.


$ svn status
A + config.c
D parser.c

$ svn diff
Index: parser.c
--- parser.c (revision 768)
+++ parser.c (working copy)
@@ -1,44 +0,0 @@
-/* parser.c - test the configuration
- *
- * $Id:$
- */

(real contents stripped somewhat)

I was expecting to get both the minus of parser.c and the plus of config.c
in the diff output.

Ben found out that when the status of a file is "A" (so without history),
it is shown as plus by svn diff.

I think that the behaviour of svn diff is wrong in this. So I call it a
bug. Comments welcome.



To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 9 05:51:51 2004

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.