1
我是中國的程序員。 我想將計算機中工作副本的更改提交到存儲庫。該倉庫是在一個URL,現在i'm這樣做:sharpsvn提交問題
using (SvnClient client = new SvnClient()){
string path = @"C:\testdelete\test.java";
client.Delete(path);
client.Authentication.Clear(); // Clear predefined handlers
client.Authentication.UserNamePasswordHandlers += delegate(object obj, SharpSvn.Security.SvnUserNamePasswordEventArgs args)
{
args.UserName = "username";
args.Password = "password";
};
var uri = client.GetUriFromWorkingCopy(path);
if (uri != null)
{
SvnCommitArgs args = new SvnCommitArgs();
args.ThrowOnError = true;
args.ThrowOnCancel = true;
client.Commit(path, args);//here throw a SvnOperationCanceledException
}
}
但doesn't工作,爲什麼要感謝?!
該異常是否包含具有更多信息的消息? – 2010-05-13 07:02:43
有沒有更多的信息 這是一個代碼錯誤? – zhangxiaoning 2010-05-13 07:58:06