[Top][All Lists]

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

Re: Identification of deleted lines information in CVS Annotate

From: Amaresh Chandra Das
Subject: Re: Identification of deleted lines information in CVS Annotate
Date: Wed, 4 Feb 2009 10:54:59 +0530

Hi Todd and Sriranjani,

You deleted from CVS or local server ?
              If u deleted from both server then i have to see,
                      else if u deleted from either local server or CVS server then do "cvs -q up -Pd <filename>"
                              else do   " cvs -q up -Pd -r  <Previous_rev_no> <filename>" .

Check bellow link,


Amaresh cid:image001.gif@01C94FB6.D222FBC0


--- On Tue, 3/2/09, Todd Denniston <address@hidden> wrote:
From: Todd Denniston <address@hidden>
Subject: Re: Identification of deleted lines information in CVS Annotate
To: "Sriranjani Srinivasan" <address@hidden>
Cc: "cvs" <address@hidden>
Date: Tuesday, 3 February, 2009, 8:29 PM

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:
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
> 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
>> Hi Sriranjani,
>> Please Check , cvs log <filename>
>> i think, you will get the solution.
>> Cheers
>> Amaresh
>> +91-9886720068
>> --- On Fri, 30/1/09, Sriranjani Srinivasan
<address@hidden<mailto:address@hidden>> wrote:
>> From: Sriranjani Srinivasan
>> Subject: Identification of deleted lines information in CVS Annotate
>> To:
>> Cc: "Muzaffar Ahmad Reshi"
>> 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
and ViewCVS (
>> For browsing through the source history more easily. Annotate option
in these interfaces also doesn't give me any information of the deleted
>> 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

Thanks & Regards,

Hare Krishna.....
मन मेरा मंदिर हरी मेरी पूजा
हरी से बडा नही कोई दूजा

Amaresh Chandra Das
Mobile: 91-9886720068
Mail: address@hidden

"Walk with a hope in your will never   walk alone"

reply via email to

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