none
Check if a file is changed in SVN C# RRS feed

  • Question

  • Hey!

    Im trying to check if a subversioned file is changed but i cant get it to work.. I want to make the check so i can check in the new things if there is any.. Any ideas? I want to se if anything is changed in a file..
     private void LaddaHittaErsätt_Click(object sender, EventArgs e)
            {
                files = Directory.GetFiles(KundMapp, "*.sql", SearchOption.AllDirectories);
                SvnStatusArgs sa = new SvnStatusArgs();
                sa.Depth = SvnDepth.Empty; // Adjust this to check direct files, or (recursive) directories etc
                foreach (string f in files)
                {
    
    
                Collection<SvnStatusEventArgs> statuses;
                client.GetStatus(f, sa, out statuses);
                MessageBox.Show(client.GetStatus(KundMapp, sa, out statuses).ToString());
                }
    Best Regards

    • Moved by CoolDadTx Friday, December 20, 2019 2:51 PM Third party product
    Friday, December 20, 2019 11:57 AM

Answers

  • This forum is for C#-specific questions only. Please post questions related to third party libraries like Svn in their forums.

    Michael Taylor http://www.michaeltaylorp3.net

    • Marked as answer by Carlo Goretti Friday, December 20, 2019 4:31 PM
    Friday, December 20, 2019 2:51 PM

All replies

  • Hello,

    May I ask, why use code rather than a plugin such as this one? And have you seen this code?


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange


    Friday, December 20, 2019 12:21 PM
  • I tryied that code but it didnt work.. I want to see if the file is changed..
    Friday, December 20, 2019 1:40 PM
  • This forum is for C#-specific questions only. Please post questions related to third party libraries like Svn in their forums.

    Michael Taylor http://www.michaeltaylorp3.net

    • Marked as answer by Carlo Goretti Friday, December 20, 2019 4:31 PM
    Friday, December 20, 2019 2:51 PM