Windows 下一次 svn commit 改变了多少个文件?

发布于 2024-11-02 11:56:30 字数 91 浏览 0 评论 0原文

如何获取提交时更改的文件数量,我们正在使用 tortoise svn (windows 7),但它似乎没有该功能。有没有一种方法可以找出有多少文件被更改而无需手动计数?

How can I get the number of files changed on a commit, we are using tortoise svn (windows 7) but it seems that it doesn't have that functionality. Is there a way to find out how many files were changed without counting them manually?

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

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

发布评论

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

评论(4

夏末染殇 2024-11-09 11:56:30

对于已完成的提交:

打开日志对话框,选择相关修订。已更改文件列表正下方的信息标签显示已更改的路径数量(“...,显示 XXX 已更改路径”)。

在你提交之前:
打开提交对话框。再次查看右下角的信息标签。它向您显示显示了多少个文件以及选择了多少个文件进行提交。

For a commit that's already done:

open the log dialog, select the revision in question. The info label right below the list of changed files shows how many paths were changed ("..., showing XXX changed paths").

Before you commit:
open the commit dialog. And again, look at the info label at the bottom right. It shows you how many files are shown and how many are selected for the commit.

杯别 2024-11-09 11:56:30

您需要安装命令行客户端并将调用它的输出通过管道传输到文本文件中:

svn log URL[@REV] --verbose > myLog

之后您可以轻松解析输出以计算文件数

you need to install the command line client and pipe the output from calling it into a text file:

svn log URL[@REV] --verbose > myLog

After that you can easily parse the output to count the number of files

毁虫ゝ 2024-11-09 11:56:30

使用 TortoiseSVN:
1) 右键单击​​您的工作目录
2) 选择“TortoiseSVN”
3)选择“检查修改”(在我的 Tortoise 版本中,这是从顶部开始的第三个选项,位于“repo-browser”下方)
4) 您想要的信息位于打开的对话框的右下角(按钮上方)。

With TortoiseSVN:
1) Right Click on your working directory
2) Select 'TortoiseSVN'
3) Select 'Check for Modifications' (in my version of Tortoise this is the third option from the top, below 'repo-browser')
4) The info you want is on the bottom-right (above the buttons) in the dialog that opens.

梦萦几度 2024-11-09 11:56:30

有点解决方法,但您不需要安装或执行任何其他操作。
打开日志并搜索确切的修订号,以便只有您想要查看更改文件数量的一次提交可见。然后只需点击统计即可。
它只会显示列表中日志的统计信息,因此只有您想要的更改文件数的一次提交。
然后是每周文件更改,它显示更改的文件数量(我认为还有添加、删除等)。

A bit of a workaround, but you won't need to install or do anything else.
Open the log and search for the exact revision number, so that only that one commit you want to see the number of changed files for is visible. Then just click on Statistics.
It will only show the statistics for the logs that are in the list, so only the one commit you want the the number of changed files for.
There is then the File changes each week which displays the number changed files (I think also the added, deleted etc.).

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