在 Eclipse 中查看 SVN 提交

Review SVN commit in Eclipse

我正在和另外 4 个人一起做一个 java 项目。我们使用 svn 来做版本控制。有什么方法可以检查谁提交了大部分程序?我已经尝试使用 eclipse 的声纳插件。但我无法让它工作。

您可以使用 SVN client command line.

如果您还没有,对于 WIN,它可能是 https://sliksvn.com/download/. For Linux, take a look at something like this: https://askubuntu.com/questions/258151/how-to-install-subversion-client-in-ubuntu

之后,如果您使用的是 WIN,请使用此 PowerShell 命令:

svn log --xml | select-string -pattern '<author>[\s\S]*?<\/author>' | Group-Object

如果您使用 Linux,请使用此 shell 命令:

svn log -v --xml | grep '<author.*/author>' | sort $* | uniq -c | sort -rn

如果您在其他 OS、Google 上寻求类似的解决方案,现在您已经有了想法。


顺便说一句:当您说 "But I cannot get it to work." - 当某事不工作时,您必须提供更多相关信息,否则没有人可以帮助您。阅读更多关于 "How to ask good question." 的内容,这将帮助您获得好的答案。