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

Re: Seeking a way to do a full text search in a repository

From: Stephen Armstrong <StephenArmstrong_at_nanometrics.ca>
Date: Wed, 06 Feb 2008 13:54:02 -0500

>> Hello,
>>
>> We are starting to implement Subversion in our organization. Our users
>> have been asking me for a particular feature, and so far my searching
>> has been in vain. The feature is to be able to do a full text search of
>> the content of a repository, but without having to download the
>> repository to disk. Ideally, this would allow for either searching the
>> HEAD revision, a specified revision, or a range of revisions. Is there
>> a client out there that allows for repository searching in this manner?
>> Note that we are on a Windows platform, so the tool would have to
>> support Windows.
>>
>> Thanks,
>>
>> ~ Justin
>>
>>
>> *************************************************************************
>> This communication, including attachments, is
>> for the exclusive use of addressee and may contain proprietary,
>> confidential and/or privileged information. If you are not the intended
>> recipient, any use, copying, disclosure, dissemination or distribution is
>> strictly prohibited. If you are not the intended recipient, please notify
>> the sender immediately by return e-mail, delete this communication and
>> destroy all copies.
>> *************************************************************************
>>
>>
> Johnathan Gifford wrote:
> This is a feature that MS-Visual Source Safe has. So if your group is coming from VSS or had experience with VSS in the past, that is why they are asking. But with Microsoft phasing out support for Visual Source Safe, many groups are looking for new options as MS-Team Systems is very expensive and not very light weight. So you may be one of the first looking for similar features such as the search capability that VSS has. Keep in mind, Subversion aimed to replace CVS, not VSS. Now that Subversion is in the 1.x releases, that is starting change as features from ClearCase and Perforce are being developed.
>
> Currently, there is no built in option on Subversion to search the files that are in the repository for a certain pattern. There are a couple of tools that could aid though. First being the method mentioned by Andrew Reedick in another response to your post, but this can be ugly and time consuming. Second, I believe there is an enhancement to Trac (trac.edgewall.org) that will allow text searches. However, if you have a rather large repository (10,000+ revisions), it'll never get through the initial indexing process in Trac and there is no way to invoke that process from the command line.
>
> If this is something that you would like to see added to Subversion, please create an issue (as an enhancement) in the Subversion issue tracker. Make sure there is not one already there though! If you need a secondary person vouching for this feature, let me know the issue number, I'll be glad to do so and add additional input. I would not expect this enhancement to come around until version 2.0 or later because the road map for 1.x is pretty well much laid out and this is no light weight enhancement. I do know that a few of the committers to the project are aware of a need for this feature.
>
> Don't let this lack of a feature keep you from going to Subversion or abandoning it. While this feature may be lacking, there are plenty of features that'll make the lives of your developers much better than what they had before.
>
> Hope this helps,
>
> Johnathan
>
>
>
If using a second system for this search is an option, I'd recommend
opengrok (http://www.opensolaris.org/os/project/opengrok/). Opengrok is
a server-based webapp that allows you to search through any source code.
It's fast, can work with many different programming languages, and any
methods or variables shown are links to further searches.

It requires a computer running a servlet container (like Tomcat), and
the computer running opengrok must have a working copy of all the code
you want to search.

Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-06 19:54:11 CET

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