找出谁在目录上提交了特定的 svn prop (svn:ignore)
在我的 svn 项目中,有一个目录具有 svn:ignore 属性。现在我想找出哪个提交者在此目录上设置了此属性以及相应的修订版。
我怎样才能在命令行上做到这一点?
[我在Linux上。也欢迎使用 GUI 选项来找出这一点。]
In my svn project there is a directory which has an svn:ignore property. Now i want to find out which committer set this property on this directory and the corresponding revision.
How can i do that on commandline?
[I'm on Linux. GUI-options to find that out are also welcome.]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我没有找到 这本书,这似乎令人惊讶。
如果涉及到它,您可以使用 svn propget svn:ignore directory -r对修订版本进行二分搜索,从中间点开始,如果属性存在则向上或向下移动或不 - 如果您的提交次数少于 100 万次,则最多需要 20 次尝试...
I didn't find a mechanism easily listed in The Book, which seems surprising.
If it comes to it you could do a binary search over revisions using
svn propget svn:ignore directory -r<foo>
, starting at the half-way point and moving up or down if the property is there or not -- it'll take at most 20 tries if you've got fewer than a million commits...所以 svn-commandline 不提供功能,而且我没有找到适合我的用例的好脚本,所以我只是编写了自己的脚本,它完全符合我的问题。我将其发布在相关帖子中,以避免重复: 如何使用SVN日志检测修改的属性
So the svn-commandline doen't provide the functionality, and I didn't find a good script for my use case, so i just wrote my own which does exactly what i wanted in my question. I posted it in the related post, to avoid duplication: how to detect modified properties using SVN log