Search for a file name (pattern) in svn repository (not in checked-out directories)

5,422 views
Skip to first unread message

Arun Jain

unread,
May 15, 2012, 6:24:04 AM5/15/12
to us...@tortoisesvn.tigris.org
How do you search for a file or folder in the SVN repository using TSVN.

I know one of the way, is - Show Log and search from there. But that's for already checked-out files.

But I want to be able to search in the repository. (without checking-out in local)

For example,
I want to search for all files matching a pattern (regex) like "*blueprint*.doc" in some path of the repository (say svn.test.com/branches/docs), I don't want to checkout each and every file and directory under that path just for searching purpose.

So how do I search the repository directly ?

Thanks in advance.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2960881

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

Simon Large

unread,
May 15, 2012, 9:32:59 AM5/15/12
to us...@tortoisesvn.tigris.org
On 15 May 2012 11:24, Arun Jain <ak...@live.com> wrote:
> How do you search for a file or folder in the SVN repository using TSVN.
>
> I know one of the way, is - Show Log and search from there. But that's for already checked-out files.
>
> But I want to be able to search in the repository. (without checking-out in local)
>
> For example,
> I want to search for all files matching a pattern (regex) like "*blueprint*.doc" in some path of the repository (say svn.test.com/branches/docs), I don't want to checkout each and every file and directory under that path just for searching purpose.
>
> So how do I search the repository directly ?

As far as I know you can't. There is no server API that would allow
TortoiseSVN or any other client to do that.

Simon

--
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2960907

Markus Schaber

unread,
May 15, 2012, 10:13:49 AM5/15/12
to us...@tortoisesvn.tigris.org
Hi, Arun,

Von: Arun Jain [mailto:ak...@live.com]
>
> How do you search for a file or folder in the SVN repository using TSVN.
>
> I know one of the way, is - Show Log and search from there. But that's for
> already checked-out files.

No, you can also "Show Log" from the Repository Browser, no need to check out first.

> But I want to be able to search in the repository. (without checking-out
> in local)
>
> For example,
> I want to search for all files matching a pattern (regex) like
> "*blueprint*.doc" in some path of the repository (say
> svn.test.com/branches/docs), I don't want to checkout each and every file
> and directory under that path just for searching purpose.
>
> So how do I search the repository directly ?

SVN itself does not provide that functionality.

Workarounds are:
- Use the "Show Log" on the Repository Browser directly for the URL.

- Use "svn ls url" for the repository root, and then pipe the output through "grep" or a similar tool.

- There's 3rd-party software which allows to search SVN repositories (I tested none of them myself...):
http://sourceforge.net/projects/svn-search/
http://svnquery.tigris.org/
http://opensolaris.org/os/project/opengrok/
http://trac-hacks.org/wiki/RepoSearchPlugin

- You can create a git-svn mirror of the repository, and then apply any of the solitions for searching in a GIT repository.



Best regards

Markus Schaber
--
___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50

Email: m.sc...@3s-software.com | Web: http://www.3s-software.com
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2960923
Reply all
Reply to author
Forward
0 new messages