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

RE: How to get diff information of a renamed file

From: <Paul_Koning_at_Dell.com>
Date: Fri, 26 Sep 2008 10:28:08 -0500

>How do I get diff information of a renamed file?
>
>Say I have a file repos-path/file.txt. I rename it to repos-path/new_file.txt in reversion number 30. How to see the diff information with previous versions?



Svn diff –r 29:30 new_file.txt

 

Subversion knows the history, so it knows to find the old rev by its old name.


>2ndly, how to see diff information of added and deleted files. In cvs we can use cvs rdiff -r0 -r1.1 file_name for added file and cvs rdiff -r1.3 -r0 for a deleted file. How can I do the >same for Subverison files?



Svn cat file_name :-)

 

More precisely, if you want to see the contents of a file deleted in rev 30, do “svn cat file_name_at_29”. That says “look for the thing that in rev 29 had name “file_name”.

 

                paul

Received on 2008-09-26 17:29:21 CEST

This is an archived mail posted to the Subversion Users mailing list.

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