c# SharpSVN,如何获取特定修订文件的副本?
我一直在 SharpSVN 中寻找可以在 TurtoiseSVN GUI 中执行相当于“将修订保存到...”的操作。我一直在尝试找出如何做到这一点但没有运气。目前我正在看: 注意:在我调用 client.GetLog(uri,arguments,out logitems); 后,logentry 是一个 SvnLogEventArgs;
foreach (SvnChangeItem svnChangeItem in logentry.ChangedPaths)
{
// I would think I could do something like svnChangeItem.SaveRevsionTo()
}
SvnChangeItems 基本上存储了 TurtoiseSVN 中显示的确切信息。当您右键单击那里时,它允许您保存选定的修订版文件,这就是我希望使用 SharpSVN 执行的操作(我不想实际签出该文件,只需获取该修订版的文件副本)。谢谢。
I was looking for something in SharpSVN that will do the equivalent of "Save revision to..." in the TurtoiseSVN GUI. I have been trying to find out how to do this with no luck. Currently I am looking at:
Note: logentry is a SvnLogEventArgs after I called client.GetLog(uri, arguments, out logitems);
foreach (SvnChangeItem svnChangeItem in logentry.ChangedPaths)
{
// I would think I could do something like svnChangeItem.SaveRevsionTo()
}
The SvnChangeItems store basically the exact information that is shown in TurtoiseSVN. When you right-click there it allows you to save the selected revsision file which is what I am hoping to do with SharpSVN (I do not want to actually check out the file, just get a copy of the file at that revision). Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 SvnClient.Export,传入使用存储库 url 和所需修订号构造的 SvnUriTarget。
Use SvnClient.Export, passing in a SvnUriTarget constructed with the repository url and desired revision number.