![](/img/trans.png)
[英]How to check if files on svn are the same with the local files C#(sharpsvn)
[英]How to import local files to SVN with sharpsvn using C#.NET
我正在一個像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);
}
我找到了解決方案,但這是針對我的情況的。
client.Import(fileName,
new Uri("https://koteshwar:8443/svn/"+comboBox1.SelectedItem+"/trunk"), ca, out result);.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.