Note that there are some explanatory texts on larger screens.

plurals
  1. POSharpSVN Cannot Commit ( ... is not a working copy )
    primarykey
    data
    text
    <p>I am newbie in SharpSVN. I found many examples from Internet related with SharpSVN. Also i did some success cases like Checkout</p> <p>But the problem is, I can not call commit and Add functions: </p> <p>The operation that i want to do is Selecting a file from my PC then add to specified SVN folder, also if the file is exist , it should be copied as new version.</p> <p>Here is my code:</p> <pre><code>private void button1_Click(object sender, EventArgs e) { // FileUpload1.SaveAs("C:\\Users\\user\\Desktop\\crazycodeee\\" + FileUpload1.FileName); SvnClient client = new SvnClient(); client.Authentication.Clear(); client.Authentication.DefaultCredentials = new NetworkCredential("crazyufuk", "123456"); SvnCheckOutArgs coArgs = new SvnCheckOutArgs(); coArgs.Depth = SvnDepth.Infinity; // client.CheckOut(new Uri("http://localhost:8080/svn/crazycode/branches/"), "C:\\Users\\TTVERCIN\\Desktop\\crazycodeee"); Add("C:\\Users\\user\\Desktop\\test_folderl\\"); Commit("C:\\Users\\user\\Desktop\\crazycodeee", "AS"); } public bool Add(string path) { using (SvnClient client = new SvnClient()) { SvnAddArgs args = new SvnAddArgs(); args.Depth = SvnDepth.Empty; args.AddParents = true; return client.Add(path, args); } } public bool Commit(string path, string message) //second { using (SvnClient client = new SvnClient()) { SvnCommitArgs args = new SvnCommitArgs(); args.LogMessage = message; args.ThrowOnError = true; args.ThrowOnCancel = true; try { return client.Commit(path, args); } catch (Exception e) { if (e.InnerException != null) throw new Exception(e.InnerException.Message, e); throw e; } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload