Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starteam Recursive Add

Tags:

starteam

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 a repository that I have been managing with Git. I've managed to add the folders to my view, however, I can't seem to check in all the files. I don't think anyone will notice the extra Git information so, does anybody know how to add all files and folders to StarTeam recursively? Command line would be fine, I'm getting tired of fighting with the client.

If it's important, StarTeam 2006 Release 2

like image 517
IslandCow Avatar asked Aug 24 '11 20:08

IslandCow


2 Answers

First, add the folders.

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

Next, add the files. Click the parent folder. Click the "Show all descendents" toolbutton to the right of the <All Files By Status> combo. All files will show. Multi-select them, right-click, and click "Add Files..." on the menu.

like image 141
Craig Stuntz Avatar answered Nov 23 '22 05:11

Craig Stuntz


This is a pretty old question, but I just had to solve a similar problem. You can do that using the stcmd command line tool. Create a shell script like the following one to do that.

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 -exfileto exclude your git folder.

I'm using Starteam 2009 v11.

like image 38
orkoden Avatar answered Nov 23 '22 04:11

orkoden