I'd like to grep
all revisions of a file for a string. e.g. to find when a function was added or removed.
Is there a "simple" way to do this? (i.e. a single bash
command line would be nice.) Doing a manual binary search by checking out revisions and testing individually seems too tedious and error prone.
If I was smart enough to commit the change with a useful description then I can grep
the log with something like:
svn log myfile.c | grep my_func
This doesn't provide a revision number though, so I suspect there's a better way to do that too.