We help IT Professionals succeed at work.

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

dgroves
dgroves asked
on
590 Views
Last Modified: 2013-11-26
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?
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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?

Author

Commented:
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.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.