File Groups

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

Moderator: SourceGear

Post Reply
rizzo

File Groups

Post by rizzo » Sun Oct 09, 2005 10:17 pm

This is probably a wishlist item, but maybe not...

Day after day for me to even start work, I have to check out a half a dozen files from a bunch of different directories. Is it possibly to somehow assign these files to a group or a set and then check out the entire set? That would be a killer feature.

Alternatively, can some type of script be written to check out these files?

Thanks

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Mon Oct 10, 2005 8:11 am

I'll add this as a wish list item.

In the meantime, you could use the command line client to do this. I'm not sure if the checkout command takes multiple files or not, but if not, it does support a batch mode where you can specify multiple commands (which makes it faster than calling the CLC multiple times, which would need to login each time.)

rizzo

Post by rizzo » Mon Oct 10, 2005 1:58 pm

dan wrote:I'll add this as a wish list item.

In the meantime, you could use the command line client to do this. I'm not sure if the checkout command takes multiple files or not, but if not, it does support a batch mode where you can specify multiple commands (which makes it faster than calling the CLC multiple times, which would need to login each time.)
Can you please show me how a batch mode works?

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

Post by lbauer » Mon Oct 10, 2005 2:25 pm

Create a batch file with the commands you want the Vault CLC to execute. In this case, the batch file would have a checkout command for each file.

Documentation for Batch:

usage: vault.exe BATCH - | filename

Batching allows multiple vault commands to be executed within one 'run'.

Use - (hyphen) to specify the batch commands can be found on standard input.
Otherwise, provide the name of a file where the vault commands can be located.
In batch mode, please provide only one vault command per line.

Server and authentication information is specified by:

-host host
Hostname of the vault server to connect to. Can also use "-server"

-ssl
Enables SSL for server connection

-user username
Username to use when connecting to server.

-password password
Password to use when connecting to server

-repository repositoryname
Repository to connect to

For additional documentation on checkout, etc., cd to the Vault Client directory via the command line and type "vault helphtml" (Vault 3.1).
Linda Bauer
SourceGear
Technical Support Manager

Post Reply