我能否找出谁在 SVN 存储库中引入了代码更改?
我可以根据内容获取日志吗?
假设我想知道谁引入了某个函数的代码,我必须检查日志及其注释(签入消息)。如果有人忘记输入日志消息,我将不得不检查每个差异,这将花费很多时间。
某些工具(例如 FishEye)可以做到吗?
Can I get logs based on content?
Let's say I want to know who introduced the code for a function, I will have to check the logs and their comments (checkin messages). If someone forgot to put in a log message, I will have to check each diff which would take a lot of time.
Could some tool, like FishEye, do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看
svn Blame FILE
或svn ann FILE
。这将为您提供文件的内容,但每一行前面都有修订号和最后更改它的作者。TortoiseSVN 和大多数其他 SVN GUI 客户端都内置了注释软件以及 IDE。
FishEye 是 Atlassian 的存储库浏览应用程序,在打开文件时默认执行此操作。我刚刚在沙箱中尝试过,您会看到默认情况下突出显示所有内容: http://sandbox.fisheye.atlassian.com/browse/antlr/BUILD.txt?r=6087
Look at
svn blame FILE
orsvn ann FILE
. This will give you the file's contents, however with each line preceeded by the revision number and author of who last changed it.TortoiseSVN and most other SVN GUI Clients have annotation software built in, as well as IDEs.
FishEye is repository browsing application by Atlassian and does it by default when opening the file. I just tried it in the sandbox, you'll see everything is highlighted by default: http://sandbox.fisheye.atlassian.com/browse/antlr/BUILD.txt?r=6087
这就是 svnblame 存在的原因。
This is why svn blame exists.