Command Line Check Out fails but returns success

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

Moderator: SourceGear

Post Reply
dmurty
Posts: 37
Joined: Tue May 23, 2006 10:08 am
Contact:

Command Line Check Out fails but returns success

Post by dmurty » Wed Jan 28, 2009 12:36 am

Hi,

We are using Vault 4.0.6.15954 and have a nightly build script that builds all our projects and runs all the associated unit tests. We have noticed that if the build script tries to check out a file that is still exclusively locked by someone else that it does not fail on the check out but on the check in. The check out process returns the following message:
<vault>
<!--Check out failed for $/1 - Current Development/NET/Unit Tests/Database/HAS.DB: The file has been exclusively locked.-->
<!--Check out failed for $/1 - Current Development/NET/Unit Tests/Database/HAS.LOG: The file has been exclusively locked.-->
<!--Check out failed for $/1 - Current Development/NET/Unit Tests/Database/has.mlg: The file has been exclusively locked.-->
<result>
<success>True</success>
</result>
</vault>

Is there a way that we can get the result of this vault operation to return a failure if the files are already checked out?

Thanks

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Command Line Check Out fails but returns success

Post by lbauer » Wed Jan 28, 2009 11:03 am

Could you post an example of the script? Delete any passwords and server information.
Linda Bauer
SourceGear
Technical Support Manager

dmurty
Posts: 37
Joined: Tue May 23, 2006 10:08 am
Contact:

Re: Command Line Check Out fails but returns success

Post by dmurty » Wed Jan 28, 2009 11:08 am

Here is the command line statement that is producing the successful checkout without actually checking out:

"C:\Program Files\SourceGear\Vault Client\vault.exe" -host www.rndstuff.com -user <OUR_USER_NAME> -password <OUR_PASSWORD> -repository "HealthCare Assistant" checkout "$/1 - Current Development/NET/Unit Tests/Database/HAS.db" "$/1 - Current Development/NET/Unit Tests/Database/HAS.log" "$/1 - Current Development/NET/Unit Tests/Database/HAS.mlg" -setfiletime modification -exclusive

Results:
<vault>
<!--Check out failed for $/1 - Current Development/NET/Unit Tests/Database/HAS.DB: The file has been exclusively locked.-->
<!--Check out failed for $/1 - Current Development/NET/Unit Tests/Database/HAS.LOG: The file has been exclusively locked.-->
<!--Check out failed for $/1 - Current Development/NET/Unit Tests/Database/has.mlg: The file has been exclusively locked.-->
<result>
<success>True</success>
</result>
</vault>

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Command Line Check Out fails but returns success

Post by lbauer » Wed Jan 28, 2009 12:16 pm

We do have bug 13611 already logged for this, but we don't know when it might be fixed. I've added your comments and bumped it up in priority.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply