none
Problem with SVN status.. RRS feed

  • Question

  • Hey!

    Im trying to use the SVNStatus but cant get it to work..

                    if (client.GetStatus(KundMapp, sa, out statuses) == true)
                    {
                        client.Add(KundMapp);
                        commitArgs.LogMessage = "Committat av " + ADName + " via Konverterings Program " + DateTime.Now.ToString();
                        client.Commit(KundMapp, commitArgs);
                    }
                    else
                    {
    
                        foreach (string f in files)
                        {
                            client.GetStatus(f, sa, out statuses);
                            foreach (SvnStatusEventArgs statusEventArgs2 in statuses)
                            {
                                if (statusEventArgs2.LocalContentStatus == SvnStatus.Modified)
                                {
    
                                    //client.Add(KundMapp);
                                    commitArgs.LogMessage = "Committat av " + ADName + " via Konverterings Program " + DateTime.Now.ToString();
                                    client.Commit(f, commitArgs);
                                }
    
                                //client.Commit(f, commitArgs);
                                //client.Add(KundMapp);
                                //commitArgs.LogMessage = "Committat av " + ADName + " via Konverterings Program" + DateTime.Now.ToString();
                            }
                        }
                    }
    Im trying to check if the folder is not commited. Then do onething. Otherwise commit in the modified files in the folder..
    Friday, December 20, 2019 4:31 PM

All replies

  • SVN is a 3rd party tool, and maybe you should post to a SVN forum.
    Friday, December 20, 2019 9:49 PM
  • Ye but its also about C# code and thats why im asking here..
    Friday, December 20, 2019 10:09 PM
  • Ye but its also about C# code and thats why im asking here..
    What does C# have to do with issues concerning a 3rd party tool?  It's not a C# issue. It's an  SVN issue.
    Saturday, December 21, 2019 2:01 AM