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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With