Sharpsvn 搜索存储库提交
使用 Sharpsvn 我想搜索 svn 服务器中提交文件的所有注释以查找特定字符串。
但我无法让它发挥作用。我已尝试以下操作,但它不喜欢我的目标路径。
错误:修订类型需要工作副本路径,而不是 URL
SvnRevisionRange range = new SvnRevisionRange(SvnRevision.Working, SvnRevision.Zero);
string targetPath = "http://********:81/svn/";
Collection<SvnLogEventArgs> items;
SvnLogArgs args = new SvnLogArgs { Range = range };
client.GetLog(new Uri(targetPath), args, out items);
任何想法都会很棒
Using sharpsvn I want to search all of the comments on the commited files in our svn server for specific strings.
but i cannot get this to work. I have tried the following but it does not like my target path.
Error: Revision type requires a working copy path, not a URL
SvnRevisionRange range = new SvnRevisionRange(SvnRevision.Working, SvnRevision.Zero);
string targetPath = "http://********:81/svn/";
Collection<SvnLogEventArgs> items;
SvnLogArgs args = new SvnLogArgs { Range = range };
client.GetLog(new Uri(targetPath), args, out items);
any ideas would be great
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为您使用了:
当您仅传递 URL 时,它无法确定工作副本的修订号。
尝试使用
SvnRevision.Head
来获取存储库中的最新版本This is because you used:
It can't determine the revision number of your working copy when you just pass a URL.
Try
SvnRevision.Head
to get the latest version in the repository instead