[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 <ml_at_basmevissen.nl>
Date: 2004-04-08 22:05:36 CEST

Hi,

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.

Situation:
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.

Log:

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

Regards,

Bas.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 8 23:08:19 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.