Is it possible for SharpSvn to retrieve log messages by author?
As per the title of the question, I’m wondering if there’s any mechanism to invoke GetLog with an author parameter. Nothing is jumping out at me in the documentation either for GetLog or SvnLogArgs.
Does anyone have any thoughts on this? Alternative suggestions on how to do this are welcom开发者_如何学运维e.
I can't immediately see how either.
Assuming there isn't a direct filter, you can always filter it out yourself with the events and only save the ones with the relevant author. Sample code something like:
using(SvnClient client = NewSvnClient()){
SvnLogArgs logArgs = new SvnLogArgs();
client.Log(repofolder,
logArgs,
delegate(object sender, SvnLogEventArgs ea)
{
if( ea.Author != "silky" ){
return;
}
// Save it ...
}
}
}
精彩评论