Im trying to commit some code with SVN client RRS feed

  • General discussion

  • Cant use SVN client in code..

            private void CreateBtn_Click(object sender, EventArgs e)
                for (int i = 0; i < ÄndraFrånLista.Count; i++)
                    foreach (string f in files)
                        string content = File.ReadAllText(f);
                        if (content.ToLower().Contains(ÄndraFrånLista[i].Text) && ÄndraTillLista[i].Text != "")
                            content = Regex.Replace(content, ÄndraFrånLista[i].Text, ÄndraTillLista[i].Text, RegexOptions.IgnoreCase);
                            File.WriteAllText(f, content);
                            using (SvnClient client = new SvnClient())
                                client.Commit(KundMapp, a);
    Any ideas what im doing wrong here?
    "Kundmapp" is the folder path that i want to commit in.

    Monday, November 18, 2019 1:44 PM

All replies

  • Well, why do you thing this should work?

    Or rephrased: Look into the used classe (SvnClient, typof(KundMap))..

    Monday, November 18, 2019 2:12 PM
  • I have also tried to use Checkout() but it dosent work either..

    Monday, November 18, 2019 2:44 PM
  • This forum is for C# specific code. Questions related to the use of third party libraries like SvcClient should be posted in their forums.

    Michael Taylor

    Monday, November 18, 2019 2:54 PM
  • You didn't think we'd need to know the error you're receiving?  Does it fail when you create the object, or when you do the Commit?  You've double-checked that the URI is correct?  Why would you do one commit for each file, instead of gathering all the files up into a single commit?

    Tim Roberts | Driver MVP Emeritus | Providenza &amp; Boekelheide, Inc.

    Monday, November 18, 2019 7:01 PM
  • I want to know how to check in files into svn?? How to make them versioning..
    Tuesday, November 19, 2019 7:07 AM
  • You showed us some code that should work.  You asked if you were doing something wrong.  What happened when you ran that code?  Did you get an error?  Exactly which error, and exactly which line of code?

    Tim Roberts | Driver MVP Emeritus | Providenza &amp; Boekelheide, Inc.

    Tuesday, November 19, 2019 7:42 AM
  • I got it to work!
    Tuesday, November 19, 2019 10:00 AM