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

Re: Search for files in a repository?

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Tue, 20 May 2008 11:30:14 -0700

On Tue, May 20, 2008 at 7:48 AM, Tom Malia <tommalia_at_ttdsinc.com> wrote:

> What's the best way to search for particular files in an entire
> repository? Ideally I'd like to be able to use wild card characters in a
> file name search. For example, find all files that have extension of ".mdb"
> and where the file name contains "schema" so the mask might look like **
> schema**.mdb and then search an entire repository or all the decedents in
> a particular folder in a repository for files matching that mask.
>
>
>
> Is there anything in Tortous or even the command line of SVN to let me do
> this? If not, how about any other tools/
>

There is no easy way to do it from the svn client (tortoise and command line
that you are talking about are the clients).

Whatever you need it is best achieved at the server side. You can do one of
the following:

(1) You can install ViewVC and turn on the query feature. When the query
feature is available, it gives a Bonsai-like search form. The subversion's
ViewVC page (here: http://svn.collab.net/viewvc/svn/) has the query
interface enabled. Click on "Query Revision History" and see if that is what
you want.

(2) You can run the "snvlook tree" command on the server to achieve what you
want.

   # svnlook tree /path/to/reposistory --full-path | grep "\.mdb$"

Or some equivalent command, if it is running on a windows machine.

Regards,
-Hari
Received on 2008-05-20 20:30:49 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.