How do I find/search/grep an SVN repository history?

I need to search through all revisions of a Subversion repository to find file names and revision numbers that contain a particular string. I know that this will find occurrences in a dump:

svnadmin dump $REPO_PATH | grep -i "Verdana"

but the output is too cryptic. The output will include chunks of binary files that match.

I have been using commands like this to search for strings in the current working copy of a project:

find . -name "*.css" -print0 | xargs -0 grep "Verdana"

The format of the output is useful, it give both filename and the line in which the string occurred:

./css/forms.css: font       : 12px Verdana;

Is there any way to search all revisions of an SVN repository for say, all .css files that contain a search string? And not just a word but a string with wildcards or a regular expression like grep?

Note: I have root access to the Linux server with the repository on it.

Also note: I do not wish to search a working copy, I need to search all revisions.

7
задан Liam 18 January 2017 в 21:03
поделиться