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

Re: Search all revisions for a string

From: Talden <talden_at_gmail.com>
Date: 2006-10-17 07:50:57 CEST

I don't know about the implementation similarity to the blame feature,
but I can certainly see some value in the feature itself.

Being able to search for matches of string (or a regular expression)
within a URL (possibly recursively) backwards through a range of
revisions (possibly with a stop on first match applicable per
individual file) could be useful mining tool for lost content.

This feature is definitely best implemented on the server rather than
pulling revisions to check them all. If we treat Subversion as more
than managing code then there are certainly cases where finding the
location and point in time a given phrase is added or removed
(negative match?) could be useful (probably a few source management
uses too).

As to the implementation, I don't know enough about Subversions
implementation to comment.

If the command were somthing like

svn search [-negative-match] [-stop-on-success] [-recursive] [-rev
RANGE] -regex URL STRING/PATTERN

Where

  svn search -negative-match -stop-on-success svn://..../Eg.java "void
myOldMethod"

Would list the revision number and log of the most recent version not
to contain the specified string.

Does this sound like what people have been suggesting?

--
Talden
On 10/17/06, Van Vo <van@paintbot.com> wrote:
> I've only been on this list for a few weeks, and this is the second time
> this feature has been requested, which makes me think that it'd be a popular
> feature.
>
> I'm not sure how "blame" is implemented, but it would seem that that
> algorithm could somehow be modified/extended to perform a regex match, or
> any arbitrary function.
>
> Van
>
> -----Original Message-----
> From: Allison Bloodworth [mailto:abloodworth@berkeley.edu]
> Sent: Monday, October 16, 2006 5:49 PM
> To: users@subversion.tigris.org
> Subject: Search all revisions for a string
>
> I've searched this mailing list as well as the Subversion book (with which I
> was pretty familiar already) for this and just want to confirm:
>
> Is there really no way to search all previous revisions of a file or files
> for a string? I know that it would have been in the delta as an entire
> phrase if that helps.
>
> Thanks!
>
> Allison Bloodworth
>
>
> ---------------------------------------------------------------------
> 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 Tue Oct 17 07:51:37 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.