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

RE: Searching within files

From: <ed.wittmann_at_fiserv.com>
Date: 2006-02-22 16:58:22 CET

 
Your filesystem search of your working copy may suffice for this. Unlike
most (probably) VSS usage, typically you have the whole working copy
downloaded to your computer.

Failing that, a quick script that did this:

1 - did a "svn ls -R http://servername/repository/path"
2 - gathered that list of files and for each did a "svn cat"
3 - piped the output of that into grep

this is liable to be somewhat slow...

of course, this is on a unix box, or perhaps a Cygwin environment - I know
of no graphical tool or windows tool that does this. Maybe this should get
redirected to the TortoiseSVN mailing list? Or perhaps, a nice addition to
the svn client...

-----Original Message-----
From: subversion-2006Q1@ryandesign.com
[mailto:subversion-2006Q1@ryandesign.com]
Sent: Wednesday, February 22, 2006 10:35 AM
To: Young, Jason (GE Infrastructure)
Cc: users@subversion.tigris.org
Subject: Re: Searching within files

On Feb 22, 2006, at 16:09, Young, Jason (GE Infrastructure) wrote:

> Is there a way to search inside all the files in the repository for a
> certain string? We miss this functionality from source safe. We also
> want to be able to search for certain file names.

I don't think anything like that is built-in. You can write a post- commit
hook which takes such data and writes it into a database of your own
creation (a MySQL database, say) for which you can then write a frontend
to enable you to conduct the queries you want.
Perhaps someone has even written such a system already that you could use.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 22 17:05:29 2006

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