Merging deletes in a Team Foundation Server baseless merge

Posted by Justin Dearing on Stack Overflow See other posts from Stack Overflow or by Justin Dearing
Published on 2009-09-10T22:23:22Z Indexed on 2010/05/10 16:54 UTC
Read the original article Hit count: 473

Filed under:
|
|

I have two TFS branches that do not have a direct parent/child relationship in TFS. In a certain revision, 94 in my example, several items were deleted. I have been tasked with applying those deletes to the main branch. I'd like to do so through a baseless merge. I tried the following command to do so:

tf merge /baseless /recursive /version:94 .\programs\program1 ..\Release\programs\program1

Most of the items in the tree were marked as "merge", and some were marked as "merge edit". However, none of the items were deleted at the destination. On a whim i tried to merge over a single delete like so:

tf merge /baseless /recursive /version:94 .\programs\program1\source1.cs ..\Release\programs\program1\source1.cs

I got the following error message:

The item [TFS_PATH] does not exist at the specified version.

How do I do this? Is there a way to avoid making all those deletes myself?

© Stack Overflow or respective owner

Related posts about tfs

Related posts about merge