info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Identification of deleted lines information in CVS Annotate


From: Todd Denniston
Subject: Re: Identification of deleted lines information in CVS Annotate
Date: Tue, 03 Feb 2009 09:59:43 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20081209)

Please keep these on the list.

Sriranjani Srinivasan wrote, On 02/03/2009 12:03 AM:
Thanks Todd.

Please correct me in stating that "CVS annotate cannot do this job by itself like in SCCS and we have to rely on the options like cvs log and cvs diff like in the examples you have given below".

 From  cvs --help-commands
        annotate     Show last revision where each line was modified
In my opinion it should really read:
annotate Show the revision where each line currently in the file came to be as it is now, in the repository.

I have no idea what SCCS command you are speaking of, or what exactly it did, even though I used SCCS for ~2 years.



and there is no 'history' command for SCCS or even CSSC:
http://www.opengroup.org/onlinepubs/009695399/toc.htm
http://cssc.sourceforge.net/documentation.shtml
so what are you talking about? (there is no gentle way of asking that.)




This is my understanding about the options available.  Please correct me if I 
'm wrong.


It might help us to know Why you want to see deleted lines, as we could probably come up with a more useful command, or a better way to use annotate.

Summary, for most of us seeing when a line that currently exists was put into a file is useful (get it from annotate), for most of us knowing how MANY lines were deleted in a file in a particular revision is useful (get it from log), for most of us knowing how a SET of lines changed between two revisions is useful (get it from diff). Because no one has explained why seeing a file with all the deleted lines for the whole history of a file is useful:
A) we don't have a command to spit it out.
B) we are having trouble coming up with a useful set of commands for you.
C) annotate don't do that.


Regards,
Sriranjani S

-----Original Message-----
From: Todd Denniston [mailto:address@hidden Sent: Monday, February 02, 2009 9:30 PM
To: Sriranjani Srinivasan
Cc: 'address@hidden'
Subject: Re: Identification of deleted lines information in CVS Annotate

Sriranjani Srinivasan wrote, On 02/02/2009 01:44 AM:
Hi Amaresh,

Thanks for your response.

But cvs log <filename> only gives the log history of the file, the details of name, time and checkin comments of each revision.
How can we get the information about deleted lines from this?

example cvs log <filename> output:
revision 1.1.2.6
date: 2007/09/20 16:37:26;  author: dennis;  state: Exp;  lines: +27 -48

note the last bit: lines: +27 -48
which shows that 21 more lines were removed than lines added (at this check in).

If I wanted to know what was removed and added I would then issue:
cvs diff -u -r1.1.2.5 -r1.1.2.6 <filename>

If I only wanted to see what was removed (with out proper context)
cvs diff -u -r1.1.2.5 -r1.1.2.6 <filename> |grep -e "^-"


Thanks and Regards
Sriranjani S

________________________________
From: address@hidden [mailto:address@hidden On Behalf Of Amaresh Chandra Das
Sent: Monday, February 02, 2009 12:10 PM
To: 'address@hidden'; Sriranjani Srinivasan
Cc: Muzaffar Ahmad Reshi
Subject: Re: Identification of deleted lines information in CVS Annotate

Hi Sriranjani,

Please Check , cvs log <filename>

i think, you will get the solution.

Cheers
Amaresh 
[http://f947.mail.yahoo.com/ya/download?mid=1%5f19078%5f39747%5fAIoRaMsAAMjtSUHyLwbLBkAHS1w&pid=2&fid=%2540B%2540Bulk&inline=1]
+91-9886720068

--- On Fri, 30/1/09, Sriranjani Srinivasan 
<address@hidden<mailto:address@hidden>> wrote:
From: Sriranjani Srinivasan <address@hidden<mailto:address@hidden>>
Subject: Identification of deleted lines information in CVS Annotate
To: "'address@hidden<mailto:address@hidden>'" 
<address@hidden<mailto:address@hidden>>
Cc: "Muzaffar Ahmad Reshi" <address@hidden<mailto:address@hidden>>
Date: Friday, 30 January, 2009, 10:42 AM

Hi,

Is there any way to identify the information of deleted lines in a file through 
CVS annotate or any other means?
I 'am looking for a feature in CVS similar to the history feature of deleted 
lines available in SCCS.

Also, I have used the Web interfaces CVS Web 
(http://www.FreeBSD.org/projects/cvsweb.html<http://www.freebsd.org/projects/cvsweb.html>)
 and ViewCVS (http://www.viewvc.org/)
For browsing through the source history more easily. Annotate option in these 
interfaces also doesn't give me any information of the deleted lines.

Can anyone clarify the usage of annotate and also suggest the way to identify 
the history of deleted lines in CVS.

Version of CVS in use:
Concurrent Versions System (CVS) 1.11.18 (client/server)

Thanks,
Sriranjani S


--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]