Re: Cannot diff after file rename
From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2006-02-09 21:39:31 CET
On Mon, Feb 06, 2006 at 10:48:42PM +0000, Simon Large wrote:
It's slightly bizarre, but I think the behaviour you're seeing is correct.
> svn co file:///c:/temp/diffbug/repos wc
Okay, so TestA.txt and TestB.txt are now both at r1.
> echo Changed >> TestA.txt
Now TestA.txt is at r2. Crucially, TestB.txt is still at r1 in the wc.
> svn mv TestB.txt TestB-New.txt
You've just moved TestB.txt@r1 to TestB-New.txt.
> echo Renamed >> TestB-New.txt
And modified it, though this shouldn't be important.
> svn ci -m "r3" .
And now you've committed the new versions of TestB.txt (deleted) and
> :: These all fail - how do I diff these 2 revs?
That's actually correct. The version of TestB.txt at r2 isn't related
r1 r2 r3
If you just diff -r2:3 (with no target), you'll see that the diff
(You can force the diff with --old=... --new=..., I think).
'svn log -v' shows the copyfrom information:
r3 | malcolm | 2006-02-09 20:35:49 +0000 (Thu, 09 Feb 2006) | 1 line
If, at [*] above, you add 'svn up TestB.txt' or 'svn up' - either of
Regards,
---------------------------------------------------------------------
|
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.