J. Marsch

So I'm trying to work though a baseless merge. I'm either doing something wrong, or it's just really tough -- every file is a conflict -- even if they are perfectly identical (fc /b indicates identical), and the "Auto Merge All" option fails because some of the files in the tree are binary (it's a web site, there are jpgs in there)

Wow this is hard.

So I have the resolve conflicts dialog open, and I have multi-selected some of the files that are in conflict, and then I clicked Resolve...

I'm looking at the Resolve Selected Conflicts dialog, and I'm at a bit of a loss.

There are 3 options: "Merge Changes For Me" (won't work because the files are binaries)

"Undo My local changes", "Discard Server changes".

I don't understand what these last 2 options mean. I did the merge on my machine, and I have not committed yet, so there are no "server changes" both sets of files are local.

So which option means "keep the changes in the target branch", and which one means "replace the files in target with the ones in source"



Re: Team Foundation Server - Version Control Resolve Selected Conflicts Dialog (what do the options mean)?

Eugene Zakhareyev

In conflict you have local version you are trying to check in, and server version. The options say

* Undo my local changes - resolve conflict by taking server version and discarding whatever you have locally; effectively you are not creating new file revision there

* Discard server changes - resolve conflict by taking your local file as is and do not even bother about version currently on server; effectively you discard whatever is in previous file revision on server

Cheers, Eugene






Re: Team Foundation Server - Version Control Resolve Selected Conflicts Dialog (what do the options mean)?

J. Marsch

Hi Eugene:

I'm afraid that doesn't quite help: I don't have a check-in conflict, I have a merge conflict. Both versions of the file are local (you could also look at it the other way and say that both are on the server - they haven't been edited locally, they are being merged.

I think that I found the answer to my question in the command line reference for tf resolve:

  • The AcceptTheirs option instructs Team Foundation Server to overwrite workspace revisions with the server revision. Further, for conflicts generated by running the Merge command, this option accepts the changes from the source of the merge and overwrites the changes in the target.

    (this would seem to indicate that during a merge TFS considers the "server" to be the source, so I'm assuming that it maps to "Undo my local changes"

  • The AcceptYours option instructs Team Foundation Server to keep your changes and discard the changes in the server version of an item. For conflicts generated by running the Merge command, this option discards the changes from the source of the merge and leaves the target unchanged.

    (this would seem to indicate the converse, so if I want to keep the changes in the merge target, I would select "Discard Server Changes")

    Regards





  • Re: Team Foundation Server - Version Control Resolve Selected Conflicts Dialog (what do the options mean)?

    Eugene Zakhareyev

    I see how it can be misleading for merge conflicts (I missed the merge part Smile. There was a good post on the topick by Richard Berg; hope that is helpful.

    Cheers, Eugene






    Re: Team Foundation Server - Version Control Resolve Selected Conflicts Dialog (what do the options mean)?

    J. Marsch

    Thanks Eugene -- reading the doc now!