Pregunta

¿alguien cómo recuperar el último n mensajes de registro desde SVN usando SharpSvn? He estado llamando getlog con un argumento SvnRevisionRange pero en realidad sólo necesito los 20 mensajes más recientes que no puedo predecir con fecha solo. Gracias!

¿Fue útil?

Solución

Otros consejos

Si desea obtener los últimos N revisiones. Puede retreive ellos mediante la combinación de LIMIT y GAMA.

# 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)
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top