문제

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!

도움이 되었습니까?

해결책

You want SvnLogArgs.Limit I think.

다른 팁

If you wish to get the last N revisions. You can retreive them by combining LIMIT and RANGE.

# Header - Zero (DESC) , instead of Zero - Head (ASC - DEFAULT)

Dim uri As New Uri(_svnPath)
Dim logs As New Collections.ObjectModel.Collection(Of SvnLogEventArgs)
client.GetLog(uri, New SvnLogArgs() With { _
    .Limit = 250, _
    .Range = New SvnRevisionRange(SvnRevision.Head, SvnRevision.Zero) _
}, logs)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top