Harindaka
Harindaka

Reputation: 4898

GUI Tool to Search for File in Subversion Repository

Hi is there any graphical tool for searching for a file in a a SVN Repository based on the file name or its contents? I mean something GUI based so grep is not an option. I'm referring to something like the file search option you get in Microsoft Visual Source Safe. I'm currently using tortoise svn and Ankh SVN for Visual Studio 2010. But none of them have the search for file feature as far as I know.

Thanks in advance.

Upvotes: 3

Views: 8951

Answers (3)

gbjbaanb
gbjbaanb

Reputation: 52659

What you'll get is a web GUI to dot his along with a server-side indexer.

FishEye from Altassian is good (not free), but there's also svn-search and svnquery and opengrok.

Upvotes: 6

CZahrobsky
CZahrobsky

Reputation: 830

FYI, After you download SvnQuery and SvnFind from http://svnquery.tigris.org/ you can include SvnQuery.dll in a C# project and write your own GUI:

using System.Collections.Generic;
using SvnQuery;
//...
    public string wad = @"C:\Data\Download\SvnQuery\App\svn.idx";
    public ICollection<string> GetSvnFolderList()
    {
        string search = "/";
        var idx = new SvnQuery.Index(wad);
        var res = idx.Query(search);
        IDictionary<string, int> lst = new Dictionary<string, int>();
        foreach (var item in res.Hits)
        {
            string folder = item.Path.Substring(0, item.Path.LastIndexOf("/"));
            lst[folder] = 1;
        }
        return lst.Keys;
    }

Upvotes: 0

manojlds
manojlds

Reputation: 301097

If you want to search with just path / filename, TortoiseSVN Log is pretty capable.

Upvotes: 0

Related Questions