Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In SharpSvn, what's SvnClient.getinfo return value?

Tags:

c#

svn

sharpsvn

In SharpSvn's documentation I found (here), the return value of SvnClient.getinfo (boolean type) is missing. Can anyone help with that? Thanks.

like image 760
asherbret Avatar asked Apr 10 '13 05:04

asherbret


Video Answer


1 Answers

Here's the answer I got:

Usually all SvnClient methods return true on success and throw an error on failures. But if you change .ThrowOnError to false or cancel a command in its eventhandler then it will return false on an error/cancel. So if you are just using a simple call to .GetInfo without an SvnInfoArgs object with specific settings (or very specific handling on the SvnClient instance itself where you can also override the error handling) you can ignore the return value as it will always be true.

The credit goes to a helpful guy named Bert who sent me this email. Thanks.

like image 52
asherbret Avatar answered Oct 23 '22 10:10

asherbret