We have a bulk repository for code contain thousands of folder and sub folder, i want to search under this repositor with file name or with some word.
Root f
Recently I've published my utility to list the repository, that's much faster than "svn ls --depth infinity" approach. Here're the benchmarks. It just calls a function that is available in Subversion internal API, but now accessible through a command line.
So you can run
$ svn-crawler <URL> | grep "<file_pattern>"
If the file is in your working copy, then if you are using svn 1.5:
svn list --depth infinity | grep <filename>
or an earlier version of svn:
find . -name <filename> -not -path '*.svn*'
If you need to find the file in history (deleted or moved):
svn log -v | less
and search for it with:
\<filename><return>
The following works for me (svn version 1.4.6)
svn list -R <URL> | grep "<file_pattern>"
If you are using TortoiseSVN you can try this IF you are willing to look Project by Project - works for me:
svn list --depth infinity <your-repo-here>
to get a list of files in the repo, and then svn cat
to get contents. You can add --xml
key to list
command to make parsing a bit simpler.
If your's remote repository is not huge, then an easy method is: You can do a "checkout" to get a local repository. If you are in windows machine you use "Search" or Linux machine use "Find" command.