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

[TSVN] Re: Bug: Comparing revisions fails after rename

From: Björn Eriksson <owbear_at_gmail.com>
Date: 2005-09-20 15:56:54 CEST

Andrey Shvetsov <zzf <at> yandex.ru> writes:
> Monday, September 19, 2005, 7:41:40 PM, you wrote:
>
> > But there appears to be a bug in the "Show Log" dialog. If you
> > attempt to compare two revisions of a file, one of them being after
> > a rename of the file, you get a "File not found" error message.
>
> It is not Tortoise it is Subversion "feature".
>
> If you do a copy of project or file, or do rename which is a
> delete+copy operation then you cannot reach revisions before copy
> using new path, even if a history has entries for the requested
> path+revision.

 This might be a tsvn 1.2.2 problem. I tried (using both tsvn and svn) but
failed to repeat this. Look:

$ cat rename-test.sh
#!/bin/sh
svnadmin create Repo
svn co file://localhost`pwd`/Repo wc
cd wc
echo "rename test" >test.txt
svn add test.txt
svn commit -m "made test.txt"
echo "a change" >>test.txt
svn commit -m "changed"
svn mv test.txt test-renamed.txt
svn commit -m "renamed"
svn log test-renamed.txt
svn diff -r1:HEAD test-renamed.txt

$ ./rename-test.sh
Checked out revision 0.
A test.txt
Adding test.txt
Transmitting file data .
Committed revision 1.
Sending test.txt
Transmitting file data .
Committed revision 2.
A test-renamed.txt
D test.txt
Adding test-renamed.txt
Deleting test.txt

Committed revision 3.
------------------------------------------------------------------------
r3 | bjer | 2005-09-20 15:55:22 +0200 (Tue, 20 Sep 2005) | 1 line

renamed
------------------------------------------------------------------------
r2 | bjer | 2005-09-20 15:55:20 +0200 (Tue, 20 Sep 2005) | 1 line

changed
------------------------------------------------------------------------
r1 | bjer | 2005-09-20 15:55:19 +0200 (Tue, 20 Sep 2005) | 1 line

made test.txt
------------------------------------------------------------------------
Index: test.txt
===================================================================
--- test.txt (.../test.txt) (revision 1)
+++ test.txt (.../test-renamed.txt) (revision 3)
@@ -1 +1,2 @@
 rename test
+a change

-- 
//Björnen
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Sep 20 16:41:21 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.