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

Re: Are there any plans for an svn find command?

From: Eric Wilhelm <ewilhelm_at_sbcglobal.net>
Date: 2004-07-09 17:34:40 CEST

# The following was supposedly scribed by
# Robert Zeh
# on Friday 09 July 2004 10:25 am:

>> What about a small script?
>>
>> tukan:[kre]> cat svnfind
>> #! /bin/sh
>> target="$1"
>> shift
>> svn ls -R "$target" | egrep -e "$@"
>> tukan:[kre]>
>>
>> will that do? Over the net it creates some overhead, but if your
>> repository is not far that's not a problem.
>>
>> /Klaus
>
>The script is a good idea.  However, until svn ls is streaming, this
>script won't work well with my repository.  svn ls -R <root> on my
>repository never finishes; my machine runs out of swap.

In that case, you'll need a recursive subroutine which does 'svn ls -v <root>'
and then follows into each directory in turn (using memory only for that
directory's contents.) The svn startup load would be troublesome, but what
about using the Perl bindings?

--Eric

-- 
"I hate everyone...I just hate some people less."
                                        -- Robb Woods
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 9 17:33:09 2004

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