info-cvs
[Top][All Lists]
Advanced

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

Re: Command to show file versions that contain a given string


From: Aaron Bono
Subject: Re: Command to show file versions that contain a given string
Date: Wed, 12 Jul 2006 14:25:06 -0500

On 7/11/06, Todd Denniston <address@hidden> wrote:
Norman Crisp wrote:
> Not sure if such a CVS command exists, but I would like to be able to search
> though a CVS file looking for a particular string, even if this string has
> been removed at some point in it's history.
>

To get that you I think you pretty much have to
grep "a particular string" /path/to/repository/a_file,v
to make sure you find the string even if it has been removed in history.
Then drop back to looking at
cvs diff -rcurver -roldver a_file to see when it happened.

You could also write your own program that gets a list of all the files, then gets all versions and finally looks for the string but the only reason this would be preferred over a grep is if you don't have access to the CVS server or you are running on Windows (and for Windows you could use cygwin).


==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
==================================================================
reply via email to

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