Using SharpSvn to retrieve log entries within a date range

倾然丶 夕夏残阳落幕 提交于 2019-11-30 17:56:53
mihi

You can try it like this:

DateTime startDateTime = // ...;
DateTime endDateTime = // ...;
SvnRevisionRange range = new SvnRevisionRange(new SvnRevision(startDateTime), new SvnRevision(endDateTime));
client.GetLog(uri, new SvnLogArgs(range), out logitems);

I think you might be able to do it using one of the GetLog function that takes a SharpSvn.SvnLogArgs parameter.

public bool GetLog(System.Uri target, SharpSvn.SvnLogArgs args,
        out System.Collections.ObjectModel.Collection logItems)

That class has Start/End that are SharpSvn.SvnRevision objects which look like they can take a "time" parameter.

I've only done a little bit with it, but that would be where you could start looking.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!