Tuesday, May 3, 2011

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.

From stackoverflow
  • 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.

  • 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.

  • 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

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

0 comments:

Post a Comment