尝试使用 SharpSVN 结账时出现错误
在尝试使用以下代码时,我收到以下错误:已在处理不同的 url,错误代码 155000。
string targetPath = @"C:\Documents and Settings\Admin\My Documents\CPM Creator\"; //" for prettify
client.Authentication.DefaultCredentials = new NetworkCredential("guestUser", "hjk$#&123");
// Checkout the code to the specified directory
client.CheckOut(new Uri("http://svn.peerlis.com:8080/CPM Creator"), targetPath);
While attempting to use the following code, I am receiving the following error : Already working for different url, error code 155000.
string targetPath = @"C:\Documents and Settings\Admin\My Documents\CPM Creator\"; //" for prettify
client.Authentication.DefaultCredentials = new NetworkCredential("guestUser", "hjk$#&123");
// Checkout the code to the specified directory
client.CheckOut(new Uri("http://svn.peerlis.com:8080/CPM Creator"), targetPath);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
嗯,这是正确的吗? 这已经是 SVN 文件夹的工作路径了吗? 该位置是否有隐藏的 svn 文件夹?
我在“开始区域、本地工作、丢弃”循环中使用 SharpSVN,因此我总是从一个干净的(空)文件夹开始(祖先中没有 SVN 文件夹)。 这一直很有效。
Well, is it correct? Is this already the working path for a SVN folder? Are there any hidden svn folders in that location?
I use SharpSVN in a "get to scratch area, work locally, throw away" cycle, so I always start with a clean (empty) folder (with no SVN folders in the ancestors). This has always worked fairly well.
恕我直言,解决 SVN 问题的最佳方法是使用命令行客户端。 有时,它会以这种方式提供更多线索,因此您可能需要查看 上的文档svn结帐
IMHO, the best way to troubleshoot SVN problems is to use the command line client. Sometimes, it offers more clues that way, so you might want to look at documentation on svn checkout
你说有隐藏的.svn文件夹; 这意味着
targetPath
已经是工作副本,您必须检出到另一个文件夹,或者如果不再需要则删除现有工作副本。如果您想更新现有工作副本,请执行以下操作:
查看 Subversion 文档 了解有关在什么情况下需要什么命令的更多信息。
You said there are hidden .svn folders; this means that
targetPath
is already a working copy, you'll have to check out to another folder, or delete the existing working copy if it's no longer needed.In case you want to do an update of the existing working copy do something like:
Check out the Subversion docs for more info on what command you need in what case.