How to get tagged code from StarTeam (stcmd.exe)?

I want to get the code under a specific shortcut from StarTeam strictly using the command line . I found out that I can use "stcmd.exe" for the same. But I can not find a specific command to get the tagged code.

Can anyone help?

Thanks.

+4
source share
3 answers

The documentation for the command line tools is given here (p. 51 has scan options):

http://techpubs.borland.com/starteam/2009/en/ST_CmdTools_Help_en.pdf

The -cfgl switch allows -cfgl to specify a configuration label.

Edit using updated syntax

Full syntax for checking in the specified directory based on the configuration label:

 stcmd.exe co -p "<username>:<password>@<starteamServerAndPort>/<project>/<view>/" -rp "<workingDir>" -o -cfgl "<labelName>" 

So, with the following options:

 username=test password=pw starteamServerAndPort=10.209.30.22:49201 project=MyProject view=MyView workingDir=d:\latest lableName=MyLabel 

Our command line call:

 stcmd.exe co -p "test: pw@10.209.30.22 :49201/MyProject/MyView/" -rp "d:\latest" -o -cfgl "MyLabel" 
+2
source

Google found this: http://www.foxdata.com/starteam/faq/view_labels_and_how_to_use.htm Thus, it seems that the -vl option allows you to specify a view label.

+1
source

As an explanation of some other comments, the -cfgl flag indicates the View label, and the -vl flag indicates the version label (Revision). Specifying -cfgl is equivalent to opening a view in gui and setting the View Configuration to the given View label, and this is probably what you are looking for, as Dougman said. Specifying -vl is the equivalent of opening gui and selecting this label in the Checkout dialog box.

As for specifying passwords with funky characters, either avoid them with%, as shown above, or use the -pwdfile or -epwdfile flags and save the password in a separate file.

+1
source

Source: https://habr.com/ru/post/1300278/


All Articles