tomaszs tomaszs - 1 year ago 129
C# Question

How to programmatically get SVN revision description and author in c#?

How do I programmatically get the revision description and author from the SVN server in c#?

Answer Source

Using SharpSvn:

using(SvnClient client = new SvnClient())
    Collection<SvnLogEventArgs> list;

    // When not using cached credentials
    // c.Authentication.DefaultCredentials = new NetworkCredential("user", "pass")l

    SvnLogArgs la = new SvnLogArgs { Start = 128, End = 132 };
    client.GetLog(new Uri("http://my/repository"), la, out list);

    foreach(SvnLogEventArgs a in list)
       Console.WriteLine("=== r{0} : {1} ====", a.Revision, a.Author);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download