0.0.2

Rating: No reviews yet
Downloads: 24
Released: Apr 4, 2008
Updated: Apr 3, 2008 by schizoidboy
Dev status: -not yet defined by owner-

Recommended Download

Application IronSvnSetup.msi
application, 3170K, uploaded Apr 3, 2008 - 24 downloads

Release Notes

Managed C++.NET DLL to perform subversion tasks without spawning processes or PInvoke:

Example:
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using IronSvn;

namespace IronSvn
{
   public class Example
   {
      public void Test()
      {
         int revision;
         string repo = Path.GetTempFileName() + @"\";
         repo = repo.Replace(".", "");
         string local = Path.GetTempFileName() + @"\";
         local = local.Replace(".", "");

         repo = "file:///" + repo.Replace('\\', '/');

         Console.WriteLine("Running example with:\nSVNURL={0}\nPATH={1}\n", repo, local);

         using (SvnClient client = new SvnClient())
         {
            // Delete a repsitory if it exists
            client.DeleteRepository(repo);

            // Create a blank repository
            client.CreateRepository(repo);

            // Create a workspace
            revision = client.Checkout(repo, local);

            // Even though there are no external updates, go ahead and do an update
            revision = client.Update(local);

            // Create a random file in the workspace
            string file = Path.Combine(local, "test.txt");
            File.WriteAllText(file, "test data");

            // Add the file in the workspace
            client.Add(file);

            // Commit the workspace
            revision = client.Commit(local, "Message");
         }
      }
   }
}

Reviews for this release

No reviews yet for this release.