Getting Labelled files

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

Moderator: SourceGear

Post Reply
vlitim
Posts: 4
Joined: Wed Jul 05, 2006 9:32 am

Getting Labelled files

Post by vlitim » Wed Jul 05, 2006 9:38 am

we want it to get the correct version of files from the SourceGear repository by label, so that we cna then deploy them onto a live box. Is this possible from within SourceGear, or is there some plugin that can do the same job?

Cheers

Tim

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Thu Jul 06, 2006 7:42 am

Yes.

Invoke a Get on the Show Label dialog, or use the GETLABEL command with the Vault command line client.
Jeff Clausius
SourceGear

vlitim
Posts: 4
Joined: Wed Jul 05, 2006 9:32 am

deploy labels

Post by vlitim » Thu Jul 06, 2006 10:51 am

if I go to the show labes doalogue I get two tabs :

1. labels which has nothing on it

2. Recursive Labels that has all files labelled correctly. If I hightlight multiple files to the "get" option greys out. Also is it not possible to search for one label?

one more question: Vault command line client, how do I get to that??

Thanks for the help, as I expect I am just being stupid!

Tim

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Thu Jul 06, 2006 12:48 pm

Normally when a label is applied to a folder, you use that label to get the folder and its contents at that point in time. File based labels are not all that common because only the one file is contained in the label.

Multiple folder or file labels can also affect the same file or folder. Due to this restriction, the Vault server only allows GETs one label at a time. They key is to have a folder label, which would contain multiple files.

In regards to the vault command line client (CLC), look for vault.exe in your Vault client installation directory. Run vault.exe help for a listing of commands supported by the CLC.
Jeff Clausius
SourceGear

vlitim
Posts: 4
Joined: Wed Jul 05, 2006 9:32 am

Post by vlitim » Fri Jul 07, 2006 2:09 am

They way we work, being a web company is that we will label specific files throughout a project that we then need to be able to release when we are ready. Labelling whole folders is of no real use to us at all.

At the moment we use VSS6 and an addin to get the labelled files when we are ready but I really want to move away from it, but I cannot do that unless I have the ability to get individually labelled files for release.

thanks

Tim

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Jul 07, 2006 7:58 am

Your best bet for this would to be to use the Vault CLC.

For example, if I label some files with the label "My Label", the following would retrieve every item with that label to a separate non-vault working folder (c:\label_dir)


>vault.exe GETLABEL -DESTPATH c:\label_dir $ "My Label" -server server.dom -user admin -password abc -repository "my repository"
Jeff Clausius
SourceGear

vlitim
Posts: 4
Joined: Wed Jul 05, 2006 9:32 am

Post by vlitim » Fri Jul 07, 2006 8:47 am

that is awsome, thanks for the help. Is there anyway of doing the same thing for comments???

cheers

Post Reply