How to search SVN repository for a file when I'm not sure where I put it?

☆樱花仙子☆ 提交于 2019-12-03 05:31:12

If it was checked in fairly recently, you could do a verbose remote svn log from the top of the tree and see a history of all the commits across all the branches. You could then grep the output for the file and user name. (You would need the command line svn to do this.)

svn log -v -l 500 http://myserver/svn_root

To see a list of all the files, send grep to text file in Command Prompt:

svn list -R myurl >> results.txt 
Lazy Badger

With Subversion 1.8+ client:

svn log -v URL-OF-REPO-ROOT --search foo_oustanding.dpr

Pekka supports GoFundMonica

Good question! There doesn't seem to be an official "search" function in Tortoise, but it seems to be possible to search the log in TortoiseSVN for file names, which can be enough in many cases.

Erikk Ross

See this question and answers:

SVN Repository Search

svnquery is probably what you need.

I search like this:

svn list -R url_to_repo | grep Maintain.jar

It outputs this:

trunk/Project/pkg/Release/Maintain.jar
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!