using (SvnClient client = new SvnClient())
{
client.Commit(_targetPath, commitArgs);
SvnInfoEventArgs result;
client.GetInfo(_targetPath, out result);
SvnLogArgs args = new SvnLogArgs();
args.Start = new SvnRevision(result.LastChangeRevision);
args.End = new SvnRevision(result.Revision);
Collection<SvnLogEventArgs> logitems;
client.GetLog(_targetPath, args, out logitems);
foreach (SvnLogEventArgs logentry in logitems)
{
string author = logentry.Author;
string message = logentry.LogMessage;
DateTime checkindate = logentry.Time;
AddMessage(string.Format("Commited successfully by {0} on {1} for message: {2}", author, checkindate, message));
}
}
这是我的代码,但我只能得到一个日志条目,它应该是修订范围的所有日志的路径,有什么问题?