[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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

From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Tue, 15 May 2012 14:13:49 +0000

Hi, Arun,

Von: Arun Jain [mailto:akj84_at_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.schaber@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
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-05-15 16:13:58 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.