Created
October 9, 2012 18:04
-
-
Save bradoyler/3860397 to your computer and use it in GitHub Desktop.
Getting all your SVN log via SharpSVN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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