I can confirm this bug, and have written an XFAIL test for it (committed
in r21249). The problem is in svn_repos_trace_node_locations(), as far
as I can see. I'll be diving in to find the precise cause and generate
a solution, now.
Marcus Rueckert wrote:
> 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
>
--
C. Michael Pilato <cmpilato@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand
Received on Thu Aug 24 19:26:25 2006