How to search for file in subversion server?

Is there a way to search for a file in a subversion repository?

Something similar to Unix’ find command, with which I can find the location of a file in a repository.

  • git wildcard - remove all instances of a subdirectory
  • How to find all 'SVN working copies' on Win XP
  • How can I search my directory tree for contents within a file for a git managed project?
  • How to get last Git tag matching regex criteria
  • How do I find out what Git thinks the top-level working directory is?
  • How to find all the .git without permission denied message?
  • I know there is svn list, but this gives me a list of all the files in a directory. I want to find the directory a file is in.

  • TortoiseGit cloned SVN repository is empty
  • In Eclipse, how to have launch configurations relative to the project?
  • How do I Uncommit changes using git
  • Why is git svn show-ignore / show-externals so slow?
  • Code version change “rules”
  • Is there an equivalent of git-walk next / git-walk prev in hg?
  • One Solution collect form web for “How to search for file in subversion server?”

    You can use the following command, together with a grep, on the server:

    svnlook tree --full-paths <repository path> | grep <file>
    

    That’s the fastest option if you need to look into a big repository.

    If you only have access to the client side, again with a grep:

    svn list -R <URL> | grep <file>
    

    should do what you need.

    Both will recurse through the directories, with the client you may start elsewhere than the root of the repository though, but it will be somewhat slower as the information has to go through the network (possibly).

    Edit: Also, both gives you the option of looking into a past revision (should the file be deleted):

    • svn list -R -r <revision/revision range> <URL> and
    • svnlook tree -r <revision> <path>.

    Simply type svn help list or svnlook help tree for further details.

    Git Baby is a git and github fan, let's start git clone.