Welcome to WebmasterWorld Guest from 23.23.53.177

Forum Moderators: bakedjake

Message Too Old, No Replies

Search all past cvs diffs for all files in repository

To find a specific string

   
1:39 am on Mar 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I want to find a specific string that I know existed in the past in one of my projects that is under CVS version control. However, I don't remember which file or which revision it existed in. Is there a way to do this.
Just realized I could go into the cvs repository and do a

grep "my string" * -r

which is a hack but works.
Kind of a pain though, anyone know an easier way?
4:30 pm on Mar 22, 2007 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Are you asking if there is an easier way using your versioning software? Or an easier way to locate the filenames via grep?
grep -H -r "my string" "/path/to/cvs"

The "H" switch will list the filenames, the "r" is recursive.
8:03 pm on Mar 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



coop, I meant a better way via CVS, but that is a better grep.