TortoiseSVN 能否提供用户活动的跨存储库视图?

发布于 2024-09-10 04:45:41 字数 94 浏览 8 评论 0原文

有没有办法可以使用 TortoiseSVN 跨多个存储库查看给定时间段内的提交历史记录?能够看到这一点就好了,如果我在多个存储库中工作,那么获取完整的提交历史记录会有点麻烦。

Is there a way I can see my commit history for a given time period across multiple repositories using TortoiseSVN? It would be nice to be able to see this, and it's a little cumbersome to get my complete commit history if I'm working in multiple repositories.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

三生池水覆流年 2024-09-17 04:45:41

如果您不打算排除 svn.exe 客户端,您可以这样做:

svn log <path_to_repo> -r1:head -q | find "william_leara" >> c:\my_commits.txt

对每个存储库执行此操作,“my_commits.txt”将包含来自每个存储库的提交。如果您没有大量的存储库,那也没什么大不了的。进一步的例子:

:: dump my commits
svn log http://<server>/<path1> -r1:head -q | find "william_leara" >> c:\my_commits.txt
svn log http://<server>/<path2> -r1:head -q | find "william_leara" >> c:\my_commits.txt
svn log file:///c:/src/myrepo -r1:head -q | find "william_leara" >> c:\my_commits.txt

. 。 。我想你明白了。当然,您可以根据需要编辑范围,或者编写一个接受参数来指定存储库/范围/用户的批处理文件,等等。

If you're not going to rule out the svn.exe client, you could do:

svn log <path_to_repo> -r1:head -q | find "william_leara" >> c:\my_commits.txt

Do this for every repository, and "my_commits.txt" will contain your commits from every repository. If you don't have an obscene number of repositories, it's not a big deal. Further example:

:: dump my commits
svn log http://<server>/<path1> -r1:head -q | find "william_leara" >> c:\my_commits.txt
svn log http://<server>/<path2> -r1:head -q | find "william_leara" >> c:\my_commits.txt
svn log file:///c:/src/myrepo -r1:head -q | find "william_leara" >> c:\my_commits.txt

. . . I think you get the idea. Of course you can edit the range as necessary, or write a batch file that accepts arguments to specify repository/range/user, whatever.

忆依然 2024-09-17 04:45:41

拥有跨存储库视图之类的唯一方法是使用设置菜单,然后使用日志缓存->缓存存储库。这允许获取 svn 存储库统计信息(实际上,与特定存储库的本地使用相关) - 详细信息 并以文件集的形式导出存储库数据:[文件名].changes.csv,[文件名] .merges.csv、[filename].paths.csv、[filename].revisions.csv等。后者是您最有可能感兴趣的。我认为它可以很容易处理,例如通过 Perl 以您需要的形式获得给定时间段内的提交历史记录。

The only way to have something like cross-repository view is using Settings menu and then Log Caching->Cached Repositories. This allows to get svn repository statistics (actually, related to local usage of the particular repository) - Details and export repository data in the form of file set: [filename].changes.csv, [filename].merges.csv, [filename].paths.csv, [filename].revisions.csv, etc. The latter is the most probable you are interested in. I think it could be processed easily for example by perl to have a commit history for a given period in a form you need.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文