资 源 简 介
Description
This is a C# library to parse Subversion history logs.
It can retrieve revisions dates, authors, etc. contained in a Subversion history log
VS2012 / .NET Framework 4.5 are required to compile sources
Usage example
```
using SvnLogParser;
// ...
LogParser logParser = new LogParser(store_comments: true);
RevisionInfo[] revisions;
// parsing the Subversion log
using (FileStream fs = File.OpenRead(@"path osvnlog.txt")) {
using (StreamReader sr = new StreamReader(fs, Encoding.Default)) {
revisions = logParser.Parse(sr).ToArray();
}
}
// display result summary
Console.WriteLine("{0} revisions found", revisions.Length);
foreach (RevisionInfo rev in revisions) {
Console.WriteLine(
"Revision {0} : Commited {1:D} by {2}, {3} files changed",
rev.revisionNum,
rev.date,
rev.author,
rev.filesChanged.Count
);
}
// find revision with the longuest comment
RevisionInfo