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

RE: svn grep -r2:5 "a_word" filename1 filename2 folder3

From: Reedick, Andrew <Andrew.Reedick_at_BellSouth.com>
Date: 2006-09-21 17:55:33 CEST

> -----Original Message-----
> From: Hanley, James [mailto:jhanley@redcom.com]
> Sent: Thursday, September 21, 2006 11:10 AM
> To: Reedick, Andrew; users@subversion.tigris.org;
> dev@subversion.tigris.org
> Subject: RE: svn grep -r2:5 "a_word" filename1 filename2 folder3
>
> This script works well, and flexibility could be added for support for
> recursive searching through directories, but in the case of
> long living
> repository with a large number of revisions, this could get
> really slow,
> and with adding the flexibility of recursive searching, it could get
> unbearably slow.
>
> I think that this is a great workaround in the interim, but another
> issue is that it only works on Linux/UNIX, and even though a
> user could
> install cygwin or a command.com script could be written, it
> still would
> be cumbersome.
>
> After more thought I really feel that this should be added to the
> subversion client/server modal - meaning that the client
> should ask the
> server to do the work for the grep since (for example in the case of
> this script) if the client does the work, the server still has to send
> revision after revision to the client anyway. Another reason
> for having
> this built into subversion is that there would be a common
> interface for
> searching whether it be on windows or Linux. I could also
> imagine that
> this would be available in the api so that third party utilities could
> use this enhancement natively.
>

Short term, I'll rewrite the script in Perl to make it more OS neutral,
give it better options, add swig/api support for speed, etc., and see
about getting it added to the tools/contrib software. Might be able to
get it written this weekend.

Long term, it would be really spiffy to have revision grep functionality
in the core app, so Someone(tm) needs to flesh out the specs and create
the feature request.

*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA624

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 21 17:57:09 2006

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.