tags:

views:

17

answers:

1

Is it possible to get the author of the current commit of a folder with SharpSVN. So doing this without retrieving the log file of the svn server. I tried:

client.TryGetProperty(folder, SvnPropertyNames.SvnAuthor, out AuthorStr);

but the AuthorStr string is null.

A: 

The 'svn:author' property is a revision property, not a normal versioned property so you can not use the normal property api on it.

The easiest way to get that info in a working copy is to call SvnClient.Info() (or .GetInfo()) on your target. (You can also get it via .Status(), but that is slower then .Info() as it also checks if the file is changed)

Bert Huijben