ObjectSharp Blogs

You are currently viewing

Dave Lloyd's 2 Cents

A .NET Developer's Perspective


Conflict Resolution in TFS 2010

The conflict resolution in previous versions of VSTS/TFS worked ok, but did not have the best user experience for the developer. When a conflict was detected on check in a modal dialogue was dispatched and the developer could resolve the conflicts from there. However getting to all the information you required to resolve the conflict was not at hand.  

In TFS 2010 when you attempt to check in a conflict VS behaves the way it does when you have violated a Check in Policy. One mark for consistency. You will get a warning message as seen below.

image

Then you will be redirected to the Pending Changes - Conflicts Tab

From the conflicts tab you can get at the information you need to help you resolve the conflict.

image

Compare – Compare the local file with the latest version in source control.

History – See the complete history of all changes to this file.

Annotate – Shows you the source file with change set information in the margin. Including who made the change and when.

image

Once you know what you need to do, click on the expander for a file and select how you want to resolve this conflict. You can AutoMerge, use the Merge Tool to edit the source, or simply select the server version or the local version.

image

Happy Merging!

Comments

    No Comments

Leave a Comment

(required) 
(optional)
(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS