Vault API's

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

Moderator: SourceGear

Post Reply
Tom

Vault API's

Post by Tom » Thu Mar 17, 2005 2:52 pm

We have some scripts that we built to "get latest" from VSS. Do es Valut have a set of API's that I can use to call and get latest version within Visual Studio .NET2003?

Thanks

Tom

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Thu Mar 17, 2005 3:18 pm

I'm confused as to what you want. Do you want full VS.Net integration with get, checkout, checkin? Vault can do that. Do you want a command line client to get the latest version? Vault can do that as well. Do you want to program against the Vault libraries? Vault can also do that.

Tom

Post by Tom » Fri Mar 18, 2005 6:58 am

I know Vault can do full check in/check out. So I'm OK here.

Yes, I'd like examples of how to get latest version from the command line. Can you send me examples of how to get latest "labeled" version from .net? C# example would be great!

While I'm not sure I want to program against the Vault library, I'd like to learn more.

Thanks

Tom

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Mar 18, 2005 9:57 am

It's in c:\program files\sourcegear\vault client\vault.exe

You can get specific information about the command line tool with the command

Code: Select all

vault.exe help
and help on one of its commads with

Code: Select all

vault.exe help command
The quick answer to downloading a label to a non-working folder is

Code: Select all

vault getlabel -host vault.company.com -user "Build User" -password  "MyPassword" -repository "QA" -destfolder "C:\builds\sourcetree" "$/Automated Tests" "My Label"
To get the label to your current working folders, use:

Code: Select all

vault getlabel -host vault.company.com -user "Build User" -password  "MyPassword" -repository "QA" "$/Automated Tests" "My Label"

Post Reply