Is it possible for SharpSvn to retrieve log messages by the author?

As per the title of the question Im wondering if there is any mechanism to call GetLog with the author parameter. Nothing jumps out at me in the documentation for GetLog or SvnLogArgs.

Does anyone have any thoughts on this? Alternative suggestions on how to do this are welcome.

+2


a source to share


1 answer


I can't immediately see how.

Assuming there is no direct filter, you can always filter it yourself with events and keep only those with a matching author. Sample code:



using(SvnClient client = NewSvnClient()){
    SvnLogArgs logArgs = new SvnLogArgs();

    client.Log(repofolder,
        logArgs,
        delegate(object sender, SvnLogEventArgs ea)
        {
            if( ea.Author != "silky" ){
                return;
            }

            // Save it ...
        }
    }
}

      

+4


a source







All Articles