As far as I can see this script only checks current revisionid, it doesnt examine the history of the repository!
Geir
-----Original Message-----
From: Lutz Dornbusch [mailto:svn_at_yogasurftech.de]
Sent: 2. september 2008 03:30
To: Ed Avis
Cc: users_at_subversion.tigris.org
Subject: Re: How to grep the whole repository for a string?
Ed Avis wrote:
> Hi, I checked the Subversion FAQ but I can't see how to grep the whole
> repository for a particular string. Ideally, I would like something
> like
>
> % svngrep foo file:///path/to/repo
> something.c:r3-r10:blah blah foo blah
> something.c:r2:blah blah foo blah fa
> another.c:r3-r5:boo buu foo
>
> so it would list the filename and the range of revisions between which
> it contained that string. Or something like that.
>
> I could manually check out every revision of the repository since r1
> and grep all of them, but that seems wasteful. Is there an efficient
> way to search the whole repository for a string from the command line?
>
Hi,
I recently found this small script and it worked for me, however it is not rocket-science, but outputs all(!) files from all(!) revisions and greps, however if you do not have so many files inside, it may work.
<http://burningthornbush.blogspot.com/2007/11/small-tool-for-searching-in-svn-repos.html>
Greetings,
Lutz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-02 18:18:25 CEST