You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Michael Rüger <mi...@mra.man.de> on 2004/06/23 16:16:07 UTC

diff a svn copied file

Hello Subversion users,
 
am not able to diff a svn copied file. IMHO file1c.txt remembers his
origin, so it should be possible to track all changes of file1c.txt back
to rev. 1 of file1.txt. Please look what i did:
 
--- snip ---
D:\test\repo>echo line1 > file1.txt
 
D:\test\repo>svn add file1.txt
A         file1.txt
 
D:\test\repo>svn ci -m "line1 added"
Adding         file1.txt
Transmitting file data .
Committed revision 1.
 
D:\test\repo>echo line2 >> file1.txt
 
D:\test\repo>svn ci -m "line2 added"
Sending        file1.txt
Transmitting file data .
Committed revision 2.
 
D:\test\repo>svn copy file1.txt file1c.txt
A         file1c.txt
 
D:\test\repo>svn ci -m "file1 copyed to file1c"
Adding         file1c.txt
Committed revision 3.

D:\test\repo>echo line3 >> file1c.txt
 
D:\test\repo>svn ci -m "line3 added"
Sending        file1c.txt
Transmitting file data .
Committed revision 4.
 
D:\test\repo>svn log file1c.txt
------------------------------------------------------------------------
r4 | arugir | 2004-06-23 15:04:24 +0200 (Wed, 23 Jun 2004) | 1 line
 
line3 added
------------------------------------------------------------------------
r3 | arugir | 2004-06-23 14:17:50 +0200 (Wed, 23 Jun 2004) | 1 line
 
file1 copyed to file1c
------------------------------------------------------------------------
r2 | arugir | 2004-06-23 14:17:03 +0200 (Wed, 23 Jun 2004) | 1 line
 
line2 added
------------------------------------------------------------------------
r1 | arugir | 2004-06-23 14:16:30 +0200 (Wed, 23 Jun 2004) | 1 line
 
line1 added
------------------------------------------------------------------------

D:\test\repo>svn di -r2:4 file1c.txt
svn: 'file:///D:/repo/file1c.txt' was not found in the repository at
revision 2

 
--- snap ---
 
svn log is able to track the history for file1c.txt down to r1. But svn
diff ist not!
 
Thank you very much for any hints.
mike
 

Re: diff a svn copied file

Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2004-06-23 at 11:16, Michael Rüger wrote:

> svn log is able to track the history for file1c.txt down to r1. But
> svn diff ist not!

This is issue 1093, already fixed in the forthcoming svn 1.1.  See the
FAQ about how to work around it for now.  (Or, build svn's /trunk code!)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org