Check-out all latest versions

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

Moderator: SourceGear

Post Reply
pmccafferty
Posts: 3
Joined: Tue Mar 06, 2007 9:41 am

Check-out all latest versions

Post by pmccafferty » Tue Mar 06, 2007 9:52 am

I am using SourcGear Vault Client Version 3.5.1

Is there an easy way to check-out all the latest versions of files of all the repositories within the vault at once instead of manually checking each file?

Maybe a tool in SourceGear I am unaware of, a command prompt, or VB script?

Thanks!

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

Post by lbauer » Tue Mar 06, 2007 10:16 am

You can right-click on a folder and checkout the folder. Note: checking out a large number of files can impede Vault performance. For best results, you should only checkout the files you need to work on.
Linda Bauer
SourceGear
Technical Support Manager

pmccafferty
Posts: 3
Joined: Tue Mar 06, 2007 9:41 am

Post by pmccafferty » Tue Mar 06, 2007 10:19 am

lbauer wrote:You can right-click on a folder and checkout the folder. Note: checking out a large number of files can impede Vault performance. For best results, you should only checkout the files you need to work on.
I understand that, but is there a way to do this over a number of repositories?

I have 3 repositories that do not hold many files each, but it's a pain to switch between them and check out each folder.

Any suggestions?

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

Post by lbauer » Tue Mar 06, 2007 10:41 am

You could use the Vault Command Line Client to write a batch file that runs commands in sequence to do the checkout from each repository.

To use the CLC, cd to the Vault Client directory and type "Vault Help."

You can also get HTML help online:

http://download.sourcegear.com/misc/vau ... nt/clc.htm
Linda Bauer
SourceGear
Technical Support Manager

pmccafferty
Posts: 3
Joined: Tue Mar 06, 2007 9:41 am

Post by pmccafferty » Tue Mar 06, 2007 11:42 am

lbauer wrote:You could use the Vault Command Line Client to write a batch file that runs commands in sequence to do the checkout from each repository.
Thank you, I have it checking out each folder now. Is there a way to simplify the code so that I log in only once at the top of my batch file so that I dont have to keep writing -server -name - password ??

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

Post by lbauer » Tue Mar 06, 2007 2:35 pm

There's a REMEMBERLOGIN command that stores authentication information. Check the CLC documentation for details.
Linda Bauer
SourceGear
Technical Support Manager

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

Post by lbauer » Tue Mar 06, 2007 3:40 pm

Also -- you could use the Vault CLC BATCH command, which allows mutliple Vault comands to be executed within one "run." For documentation, run "Vault Help Batch" from the command line within the Vault Client directory.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply