Skip to content

Instantly share code, notes, and snippets.

@bradoyler
Created October 9, 2012 18:04
Show Gist options
  • Save bradoyler/3860397 to your computer and use it in GitHub Desktop.
Save bradoyler/3860397 to your computer and use it in GitHub Desktop.
Getting all your SVN log via SharpSVN
Collection<SvnLogEventArgs> list;
using(SvnClient client = new SvnClient())
{
//client.Authentication.DefaultCredentials = new NetworkCredential("user", "pass");
Uri svnrepo = new Uri("svn://servername/reponame/");
SvnInfoEventArgs info;
client.GetInfo(svnrepo, out info);
long lastRev = info.Revision;
SvnLogArgs args = new SvnLogArgs { Start = lastRev, End = lastRev-99, };
client.GetLog(svnrepo, args, out list);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment