Starteam Recursive Add

This should be an RTFM question, but I just can't find it!

I just started using StarTeam at work, and I'm trying to initialize the repository I worked with with Git. I was able to add folders to my view, however I cannot check all the files. I don’t think anyone will notice additional information about Git, does anyone know how to add all files and folders to StarTeam recursively? The command line will be fine, I get tired of fighting with the client.

If it matters, StarTeam 2006 Release 2

+8
starteam
source share
3 answers

Add folders first.

Right-click the parent of the top folder, click Create ..., enter the name of the top folder, and complete the wizard. Sub-folders will be added by default.

Then add the files. Click the parent folder. Click the Show All Descendants button to the right of the <All Files By Status> command. All files will be shown. Select them, right-click and select "Add Files ..." from the menu.

+9
source share

This is a pretty old question, but I just had to solve a similar problem. This can be done using the stcmd command-line stcmd . Create a shell script as shown below.

 starteamPath="user:password@server:port/project/view/starteampath" projectFolderPath="/path/to/project/folder" projectFolderName=`basename "${projectFolderPath}"` cd "${projectFolderPath}" cd .. # add folder projectfolder and all subfolders stcmd add-folder -p "${starteamPath}" -is -fp `pwd` -name "${projectFolderName}" # add all files from all subfolders stcmd add -p "${starteamPath}/${projectFolderName}" -is -fp "${projectFolderPath}" -EOL OFF "*" # check in all files of status updated an unknown stcmd ci -p "${starteamPath}/${projectFolderName}" -filter MU -o -EOL OFF -r "${checkinMessage}" -is -fp "${projectFolderPath}" "*" 

I think you can use -exlist or -exfile to exclude your git folder.

I am using Starteam 2009 v11.

+3
source share

You can also do this more selectively by selecting "Add Folders" on the "Folder" tab, rather than creating new folders using the wizard and excluding certain folders. To do this, open the Folders tab (new as of 2006) and All Descendants, and then select the folders you want to add, then right-click and select Add. This will make it easier to use large trees of subfolders to exclude folders that you do not want to add, although as a hint you should make sure that you show your folders by Local Path, otherwise they will be displayed by their name, which will be very confusing.

One thing in which you might want your eyes to open in the future is the ability to coordinate the local workspace with the server, and then choose your actions and complete everything in one operation (change package). This is similar to the approach you use in the View Compare / Merge tool, but in this case, instead, you are comparing the view with your local working folder. As a result, you should be able to see both folders and files that should be uploaded to the server, check that everything is in order, and then transfer everything together.

You might want to check with StarTeam / R & D support or your account reputation to make sure that this feature is still on the roadmap, but I think this was a planned feature when I last discussed it with them.

0
source share

All Articles