views:

148

answers:

3

Is there any way to search the full text of all the revisions (or just a specific revision) of a subversion repository?

I mean I know that tools like Google Code search must do this somehow (or at least index the text), I was just wondering if there was any way to do this with just a subversion client.

+1  A: 

Nothing magic is required. Just check out the repo, then do grep -r (or however you normally search files). If you want to search an old version of the repo, do:

svn export -r revID /path/to/checkout /export/to

then search /export/to. Of course, there may be more optimal ways, but this is probably good enough for your purposes.

Matthew Flaschen
+1  A: 

Have you tried SupoSE. This is a Java based approach to do real searching within a complete Subversion repository.

Or check the whole list of Subversion Links/Books/Tools.

tharkun
+2  A: 

Might be a little heavyweight setup-wise, but OpenGrok is an invaluable tool for my dev team. We trigger updates by Hudson after every build and we instantly search 1M+ lines

basszero
+1 interesting. The set-up seems to be indeed quite complex, too bad.
Wim Coenen