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

[BUG] svn diff doesn't show add

From: Francois Beausoleil <fbos_at_users.sourceforge.net>
Date: 2004-06-11 18:31:00 CEST

Hi !

I believe I just found a slight bug. I added a file to the repos, and
forgot about it. Then, I tried diffing it, and I got "file doesn't exist
in revision X". So, I deduced I had an add. But, wouldn't it be easier
for the user to get a all '+' diff ?

This problem is exhibited only if I diff a single file. If instead I ask
for a diff between two revisions, without targets, everything works fine.
 My repro recipe below reproduces the problem for deletions too.

Here's a repro recipe (Win2K SP3 fr-CA, SVN 1.0.3):

rd /s/q repos wc
cls
svn --version
svnadmin create repos
svn checkout file:///repos wc
cd wc
echo this is a file >file.txt
svn add file.txt
svn commit --message "r1"
svn update
svn diff -r0:1 file.txt
svn diff -r1:0 file.txt
svn delete file.txt
svn commit --message "r2"
svn diff -r1:2 file:///repos/file.txt
svn diff -r2:1 file:///repos/file.txt

And at runtime:

C:\>svn --version
svn, version 1.0.3 (r9775)
   compiled May 19 2004, 21:57:54

C:\>svnadmin create repos

C:\>svn checkout file:///repos wc
Checked out revision 0.

C:\>cd wc

C:\wc>echo this is a file 1>file.txt

C:\wc>svn add file.txt
A file.txt

C:\wc>svn commit --message "r1"
Adding file.txt
Transmitting file data .
Committed revision 1.

C:\wc>svn update
At revision 1.

C:\wc>svn diff -r0:1 file.txt
svn: 'file:///repos/file.txt' was not found in the repository at revision
0

C:\wc>svn diff -r1:0 file.txt
svn: 'file:///repos/file.txt' was not found in the repository at revision
0

C:\wc>svn delete file.txt
D file.txt

C:\wc>svn commit --message "r2"
Deleting file.txt

Committed revision 2.

C:\wc>svn diff -r1:2 file:///repos/file.txt
svn: 'file:///repos/file.txt' was not found in the repository at revision
2

C:\wc>svn diff -r2:1 file:///repos/file.txt
svn: 'file:///repos/file.txt' was not found in the repository at revision
2

This problem might or might not be related to 1675 '"svn diff -rN
added-file" has odd behavior':
http://subversion.tigris.org/issues/show_bug.cgi?id=1675

Should I append or create a new issue ? Or is there even a bug ?

Thanks !
François
Developer of Java Gui Builder
http://jgb.sourceforge.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 11 18:31:48 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.