[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: vinay i <vinay.indresh_at_gmail.com>
Date: Sat, 27 Sep 2008 01:13:52 +0530

Hi
My next question is how to differentiate between a committed file and
directory?

>>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".

I want to skip running "svn cat dir_name_at_29". Does svn has a functionality
to check if the committed element is a file or directory?

Thanks
Vinay

On Fri, Sep 26, 2008 at 9:22 PM, vinay i <vinay.indresh_at_gmail.com> wrote:

> Thanks Paul. :-)
>
> -Vinay
>
>
> On Fri, Sep 26, 2008 at 8:58 PM, <Paul_Koning_at_dell.com> wrote:
>
>> *>*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 21:44:19 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.