Command Line checkout bug in 4.1.2

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
vbtrek
Posts: 6
Joined: Fri Jul 14, 2006 6:07 am

Command Line checkout bug in 4.1.2

Post by vbtrek » Tue Jul 29, 2008 2:26 am

I've found a problem with the vault command line in v4.1.2 (18185).

We have a batch file that does the following couple of commands:

Code: Select all

"VAULT.EXE" -host "MYSERVER" -user "%USERNAME%" -password "MYPASSWORD" -repository "MYREPOSITORY" CHECKOUT -exclusive -merge later -performdeletions removeworkingcopyifunmodified "MYFILE"
IF %ERRORLEVEL%==-1 GOTO ERROR
This code worked fine with 3.5, however in 4.1.2 ERRORLEVEL is not being set correctly. When the checkout command is successful ERRORLEVEL is 0, however, when the file is already checked out exclusively by someone else, ERRORLEVEL is also 0 (this used to be -1). Also the XML result string claims success even when the checkout fails.

Code: Select all

<vault>
  <!--Check out failed for $/folder/myfile.xls: The file has been exclusively locked.-->
  <result>
    <success>True</success>
  </result>
</vault>
Derek Smith

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Command Line checkout bug in 4.1.2

Post by Beth » Wed Jul 30, 2008 10:21 am

I'll get this checked out. Thanks for the report on it.
Beth Kieler
SourceGear Technical Support

vbtrek
Posts: 6
Joined: Fri Jul 14, 2006 6:07 am

Re: Command Line checkout bug in 4.1.2

Post by vbtrek » Tue Sep 16, 2008 3:46 am

Has there been any progress on this problem??

Will there be a new release soon??
Derek Smith

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Command Line checkout bug in 4.1.2

Post by Beth » Tue Sep 16, 2008 9:07 am

There will be a new release very soon, but I think this particular item is not completed yet. I do have it logged.

F: 13611
Beth Kieler
SourceGear Technical Support

Post Reply