我正在开发一个像SVN一样工作的项目,能够创建存储库,结帐,创建用户和提交,但在导入过程中出现错误“工作副本'E:\ Admin \ admin'太旧了(格式10,由Subversion创建的1.6)“和一些它显示未找到的路径。
using (SvnClient client = new SvnClient())
{
SvnAddArgs saa = new SvnAddArgs();
saa.Force = true;
saa.Depth = SvnDepth.Infinity;
SvnImportArgs ca = new SvnImportArgs();
ca.LogMessage = "some log message";
SvnCommitResult result;
Uri uri = new Uri(getPathToRepository());
String fileName = getPathToFile();
client.Authentication.DefaultCredentials = new System.Net.NetworkCredential("koteswar", "neeraja");
client.Import(fileName, uri, ca, out result);
}
答案 0 :(得分:1)
我找到了解决方案,但这对我的情况非常具体。
client.Import(fileName,
new Uri("https://koteshwar:8443/svn/"+comboBox1.SelectedItem+"/trunk"), ca, out result);.