从 C# 调用 SVN 控制台客户端
关于如何在 ac# 控制台应用程序中从主干 url 创建分支的任何想法。
我正在尝试创建一个分支工具,它将创建所有新分支。在我的一生中,我几乎尝试过一切。 Sharpsvn 没有给我带来好运。
string command = "cp https://svn:8443/svn/blah/trunk \\ https://svn:8443/svn/blah/branches/newBranch \\";
Process svnBranchProcess = new Process();
svnBranchProcess.StartInfo.FileName = "Svn.exe";
svnBranchProcess.StartInfo.Arguments = command;
svnBranchProcess.StartInfo.UseShellExecute = false;
svnBranchProcess.StartInfo.RedirectStandardOutput = true;
svnBranchProcess.Start();
string output = svnBranchProcess.StandardOutput.ReadToEnd();
svnBranchProcess.WaitForExit();
Console.WriteLine("Output:");
Console.WriteLine(output);
这是我得到的错误
svn:无法混合存储库和工作副本源
基本上我希望能够创建主干分支,然后更新一些外部内容。为什么这是这样一个使命?
感谢您的帮助:)
any ideas how to create a branch from a trunk url in a c# console app.
im trying to create a branching tool, that will create all new branches. for the life of me i have tried almost everything. Sharpsvn has given me no luck.
string command = "cp https://svn:8443/svn/blah/trunk \\ https://svn:8443/svn/blah/branches/newBranch \\";
Process svnBranchProcess = new Process();
svnBranchProcess.StartInfo.FileName = "Svn.exe";
svnBranchProcess.StartInfo.Arguments = command;
svnBranchProcess.StartInfo.UseShellExecute = false;
svnBranchProcess.StartInfo.RedirectStandardOutput = true;
svnBranchProcess.Start();
string output = svnBranchProcess.StandardOutput.ReadToEnd();
svnBranchProcess.WaitForExit();
Console.WriteLine("Output:");
Console.WriteLine(output);
This is the error that i get
svn : Cannot mix repository and working copy sources
Basically i want to be able to create a branch off trunk and then update some externals. why is this such a mission?
thanks for any help :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论