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

Can't diff when filename changes.

From: Fernandes, Filipe (Bolton) <ffernandes_at_husky.ca>
Date: 2006-03-17 21:57:42 CET

Using TortoiseSVN 1.3.2, Build 5829 - 32 Bit -dev
Also Reproducable via TSVN 1.4 Build 6023).
Windows 2003

When I change the contents of a file, then subsequently rename the file
just before committing, I can't seem to look up the differences of that
particular file because of the name change, through the log viewer.
I was successful only with TSVN 1.2.6.

I know that there's a similar bug that 1.3.1 is supposed to address,
but I seem to be able to get the results I want via the command line.

I've tried obtaining the difference using the command line clients
SVN 1.2.3 and SVN 1.3.0 and it works OK. The following is pretty much
what I'm trying to do... (successful via command line, unsuccessful
via TSVN Log).

--------------------------------------------
cd /d c:\

mkdir project
echo int main(int argc, char *argv[]) { return 0; } > c:\project\main.c

mkdir repos
svnadmin create c:\repos

svn import c:\project -m "Initial import." file:///c:/repos/project/trunk

del c:\project\main.c
svn co file:///c:/repos/project/trunk c:\project

cd project
echo // Changing file extension >> main.c
svn rename --force main.c main.cpp
svn ci -m "Changed file and file name."

svn diff --old=file:///C:/repos/project/trunk/main.c_at_1
--new=file:///C:/repos/project/trunk/main.cpp_at_2
--------------------------------------------

Also works with --->
svn diff -r 1:2 file:///c:/repos/project/trunk/main.cpp

Please look at image. Right-click on main.cpp and select
'show differences' results in the error that's shown.

filipe

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org

DiffError.jpg
Received on Sat Mar 18 01:35:17 2006

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.