Any ideas on how to create this CVS tool ?

steviekm3 <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Organization http://groups.google.com
Message-ID <57d27e31-6be4-4cf9-9197-cfb2ed7d325f@d23g2000yqc.googlegroups.com>
I would like to take a string of text that exists in a file, that is
under cvs source control, and find out what file version did this
string of text first appear in the file.  A command or script to do
this is what I'm looking for.

For example below is a file called foo.cc,  as an example I would like
to find out how to go about creating a script that would tell me what
version of foo.cc the string "foobar" first appeared.


#include <iostream>
#include <vector>

int foobar()
{
}




I don't use branches in CVS and this might help make the script
simpler.   Any ideas much appreciated.  Not asking for a script unless
someone has one, just ideas about how to go about creating the
script.  What cvs commands would be needed or helpful.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.