Oct 14, 2011

SVN: How to get SVN log with C#

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

client.GetLog(new Uri("svn://svnserver/mainproject/trunk"), out logItems);
StringBuilder builder = new StringBuilder();
foreach (var item in logItems)
{
builder.AppendFormat("{0}\t{1}\t{2}\t{3}\n",
item.Revision, item.Time, item.Author, item.LogMessage.Replace('\r', ' ').Replace('\n', ' '));
}
File.WriteAllText("log.txt", builder.ToString(),Encoding.UTF8);
}
SharpSVN Project: http://sharpsvn.open.collab.net/

5 comments:

  1. The information you've provided is quite useful. It's incredibly instructional because it provides some of the most useful information. Thank you for sharing that. Virtuemart Hosting Services

    ReplyDelete
  2. I just need to say this is a well-informed article which you have shared here.Reseller Hosting Whmcs It is an engaging and gainful article for us. Continue imparting this sort of info, Thanks to you.

    ReplyDelete
  3. It is a proficient article that you have shared here.Cheap VPS I got some different kind of information from your article which I will be sharing with my friends who need this info. Thankful to you for sharing an article like this.

    ReplyDelete
  4. This information is meaningful and magnificent which you have shared here about the I am impressed by the details that you have shared in this post and It reveals how nicely you understand this subject. I would like to thanks for sharing this article here.Vps Middle East

    ReplyDelete
  5. You have worked nicely with your insights that makes our work easy. The information you have provided is really factual and significant for us. Keep sharing these types of article, Thank you.dedicated server buy

    ReplyDelete