[cvsnt] cvs update does not set ErrorLevel

Gerhard Fiedler lists at connectionbrazil.com
Tue Aug 22 14:30:12 BST 2006


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Michel Terrisse wrote:

> So the exit code is not reliable. 

I have found that, too. It can be surprising...

> Why does cvsnt return 0 when it fails ? 

I think one problem may be that "failure" is different depending on what
you are looking for. Rather than a two-value "fail/ok" result, a more
elaborate result code might be required, and failure would then be defined
as greater than a certain threshold. Or maybe even a bitmap rather than
various levels.

> Is there any way to detect that the command has failed ?

I think the only way is to parse the textual output. You'd have to
implement a more fine-grained result code in a script.

Gerhard


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook