当我不确定将文件放在哪里时,如何在 SVN 存储库中搜索文件? [英] How to search SVN repository for a file when I'm not sure where I put it?

查看:30
本文介绍了当我不确定将文件放在哪里时,如何在 SVN 存储库中搜索文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

同事确定他签入了一个文件:foo_oustanding.dpr,但不确定何时/何地(我们有很多工具"和实用程序"辅助分支,很多项目分支等..
我需要一种在整个存储库中搜索此文件的方法.我可以将整个源树检查到我的 HD 上,但这需要几个小时.有没有更快的方法?我尝试了 Repo Browser (Tortoise),它似乎没有搜索.我也想过转储日志,从一开始.但这似乎很愚蠢.

Co-worker is sure he checked in a file: foo_oustanding.dpr but isn't sure when/where (we have lots of "tools" and "utility" ancillary branches, lots of project branches, etc..
I need a way to search the entire repository for this file. I could check the whole source tree out to my HD, but that would take several hours. Is there a faster way? I tried the Repo Browser (Tortoise) and it didn't seem to have a search. I also thought about dumping the log, from the beginning of time. But that seemed silly.

我可以使用:

  • 乌龟 SVN 1.6
  • 在 Apache 上运行的 Subversion 1.5.6它在 Windows 2003 服务器上运行.
  • 远程桌面访问服务器,具有管理员权限.

推荐答案

如果它是最近签入的,您可以从树的顶部执行详细的远程 svn log 并查看历史记录所有分支的所有提交.然后,您可以 grep 文件和用户名的输出.(您需要命令行 svn 来执行此操作.)

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

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

这篇关于当我不确定将文件放在哪里时,如何在 SVN 存储库中搜索文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆