Windows 下一次 svn commit 改变了多少个文件?
如何获取提交时更改的文件数量,我们正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
对于已完成的提交:
打开日志对话框,选择相关修订。已更改文件列表正下方的信息标签显示已更改的路径数量(“...,
显示 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.
您需要安装命令行客户端并将调用它的输出通过管道传输到文本文件中:
之后您可以轻松解析输出以计算文件数
you need to install the command line client and pipe the output from calling it into a text file:
After that you can easily parse the output to count the number of files
使用 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.
有点解决方法,但您不需要安装或执行任何其他操作。
打开日志并搜索确切的修订号,以便只有您想要查看更改文件数量的一次提交可见。然后只需点击
统计
即可。它只会显示列表中日志的统计信息,因此只有您想要的更改文件数的一次提交。
然后是
每周文件更改
,它显示更改的文件数量(我认为还有添加、删除等)。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.).