Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Searching the full-text of the files in the respository in svn?

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.

like image 343
leeand00 Avatar asked Nov 16 '25 13:11

leeand00


2 Answers

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

like image 124
basszero Avatar answered Nov 18 '25 05:11

basszero


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.

like image 31
Matthew Flaschen Avatar answered Nov 18 '25 05:11

Matthew Flaschen