Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We are on a project using Microsoft Team Foundation Server for source control and have run in to some issues.

We have a "Main" branch that has been branched out to another branch "Child" which we have been working on for a while.

Now we want to merge back the "Child" into "Main" the trouble is that almost no files gets included in the merge. If I pick "Compare" between the branches it says 74 files have changed. But then when I try to use the merge command only one file appear in the "Pending changes".

Anyone have any ideas why this might happen? It seems the TFS:s merging/branching capabilities are very limited.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

There are a couple of things that might be causing this.

Make sure you have the latest version of both branches in your local workspace. If you've got an old version of the child branch then TFS will not recognise the changes on the server. This is because all changes (including merges) are done on your local machine before being committed to the server.

If you've attempted a merge, unchecked files from the pending changes, and then checked in the merge. You've just told TFS to ignore those changes (seems stupid I know). If this is the case then you need to use the "tf merge /force" command from the command prompt "tf merge /?" will show you the full syntax of the merge command

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.