tags:

views:

95

answers:

1

Does anyone how to retrieve the last n log messages from SVN using SharpSvn? I’ve been calling GetLog with an SvnRevisionRange argument but really just need the 20 most recent messages which I can’t predict on date alone. Thanks!

+2  A: 

You want SvnLogArgs.Limit I think.

Michael Hackner
Almost right - this will take the FIRST n results, I need the LAST n results i.e. the most recent messages.
Troy Hunt
If you want the last n results you should reverse your revision range. (The default is HEAD:0 and you get the results the other way if you use 0:HEAD)
Bert Huijben