info-cvs
[Top][All Lists]
Advanced

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

Re: line number to revision


From: Robin Rosenberg
Subject: Re: line number to revision
Date: Sat, 19 Jun 2004 15:21:17 GMT
User-agent: KNode/0.7.6

WannaLeanOO wrote:

> 
>> Is there a command line tool or command that would quickly translate
>> filename + line number to revision number.
> 
> Is it possible at all, to do revers lookup from filename + line number
> to revision (or version) number, rather than iterating through each
> version?

Look at annotate, i.e. 

cvs annotate filename

You can filter the output:

cvs annotate filename |grep -n .|grep ^linenumber:|cut -d: -f 2

-- robin



reply via email to

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