开发者

GUI Tool to Search for File in Subversion Repository

开发者 https://www.devze.com 2023-03-07 20:28 出处:网络
Hi is there any graphical tool for searching for a file in a a SVN Repository based on the file name or its 开发者_StackOverflow中文版contents? I mean something GUI based so grep is not an option. I\'

Hi is there any graphical tool for searching for a file in a a SVN Repository based on the file name or its 开发者_StackOverflow中文版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.


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.


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


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;
    }
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号