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

'svn diff' history-following bug

From: Marcus Rueckert <darix_at_web.de>
Date: 2006-08-02 19:57:44 CEST

hi,

i found a little weirdness when using svn diff in renamed directories.
The reproduction script and the output i get are listed below.

As you see in the output of the script it tries to trace the paths back
to r1. I really wonder why it tries that for a "svn diff -r3:4"

I tested this bug with 1.3.2 and 1.4.0rc4.

[[[
$ cat svnbug.sh
cd /dev/shm
svnadmin create t
svn co file:///dev/shm/t t-co
cd t-co
mkdir foo
svn add foo
svn ci -m "" foo
svn mv foo bar
touch bar/baz
svn add bar/baz
svn ci -m "renamed foo to bar; added bar/baz"
echo "2" > bar/baz
svn ci -m "2"
echo "3" > bar/baz
svn ci -m "3"
svn up
svn info
svn diff -r3:4 bar/baz
]]]

[[[
$ sh -x svnbug.sh
+ cd /dev/shm
+ svnadmin create t
+ svn co file:///dev/shm/t t-co
Checked out revision 0.
+ cd t-co
+ mkdir foo
+ svn add foo
A foo
+ svn ci -m '' foo
Adding foo

Committed revision 1.
+ svn mv foo bar
A bar
D foo
+ touch bar/baz
+ svn add bar/baz
A bar/baz
+ svn ci -m 'renamed foo to bar; added bar/baz'
Adding bar
Adding bar/baz
Deleting foo
Transmitting file data .
Committed revision 2.
+ echo 2
+ svn ci -m 2
Sending bar/baz
Transmitting file data .
Committed revision 3.
+ echo 3
+ svn ci -m 3
Sending bar/baz
Transmitting file data .
Committed revision 4.
+ svn up
At revision 4.
+ svn info
Path: .
URL: file:///dev/shm/t
Repository Root: file:///dev/shm/t
Repository UUID: b338f96d-f719-0410-beba-7521d7c2f187
Revision: 4
Node Kind: directory
Schedule: normal
Last Changed Author: darix
Last Changed Rev: 4
Last Changed Date: 2006-08-01 18:40:04 +0200 (Tue, 01 Aug 2006)

+ svn diff -r3:4 bar/baz
svn: File not found: revision 1, path '/foo/baz'
]]]

darix

-- 
           openSUSE - SUSE Linux is my linux
               openSUSE is good for you
                   www.opensuse.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 2 19:59:51 2006

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.