Link to home
Start Free TrialLog in
Avatar of dgroves
dgroves

asked on

Need to use command line for team foundation MERGE between different workspaces

I'm using Team System with CruiseControl.  When a build is successful in project $/A, I want to start a process for project $/B, but in order to do that, I need to use TF MERGE to get the latest copy of code (the files have previously been branched).  I need to be able to use the command line, such as "tf merge $/A $/B" with appropriate other parms, but it balks because it needs a workspace and there is no "workspace" parm for the merge command.  There are separate workspaces for the two projects.  How do I accomplish the desired outcome?
ASKER CERTIFIED SOLUTION
Avatar of hinshelm
hinshelm
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dgroves
dgroves

ASKER

Please elaborate.  Are you saying that if $/B is mapped to c:\dir\dir2 on PC SWGroup, that I should navigate to that folder using the command line, and then execute the merge from that spot?
Avatar of dgroves

ASKER

Well, a little more (actually, a lot more) digging turned up the answer;  there are two steps, following the navigation to the proper mapped folder (as previously suggested):
cd c:\basedir\projectdir
tf merge /recursive /noprompt /nosummary /force "$/sourceproject" "$/targetproject"
tf checkin /comment:"Merged from sourceproject" /recursive /noprompt

So I guess the only answer above was actually enough to get me going.  Thanks.