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

Re: Doing a search in subversion repository

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-04-28 00:15:25 CEST

On Tue, 2004-04-27 at 16:44, Ray Johnson wrote:
>
> What do other folks on this list do?

The repository exports a C API which resembles a filesystem. I imagine
it wouldn't be too hard to write a program (in any language of your
choice) which uses this API to search for text within files. I don't
know of any such program that exists yet, however.

You could also do it over a network (albeit very slowly) by just writing
a script that runs 'svn ls' to walk over the repository and 'svn cat' to
fetch file contents and grep them. Talk about painful, though.
Searches are best done on the repository machine. :-)

Maybe this would be a nice weekend project for somebody.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 28 00:19:25 2004

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.