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

How to grep the whole repository for a string?

From: Ed Avis <eda_at_waniasset.com>
Date: Mon, 1 Sep 2008 14:04:47 +0000 (UTC)

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?

-- 
Ed Avis <eda_at_waniasset.com>
---------------------------------------------------------------------
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-01 16:10:37 CEST

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.