Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8564339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:10:39+00:00 2026-06-11T17:10:39+00:00

I recently read about shelving and thought it was a fantastically useful concept. So,

  • 0

I recently read about shelving and thought it was a fantastically useful concept. So, the next time somebody came to me with a bug in my application, I shelved the extensive work I was doing to it, fixed the bug (made ~30/40 changes to classes and did some refactoring too) and checked in the fixed code.

I now want to unshelve the code I was working on, but preserve the changes I have made also. The problem is, I have made these extensive changes to the files on the server, these changes have not been made to the shelve.

What can I do here? It seems like it’s going to take hours/days to merge everything again. I know Eclipse has a wonderful feature where you can compare two files, and for each change decide whether you take the version on the server or the local version. Something like that where I could choose either the version in the shelve or the local version would be perfect.

Is there anything that could make my life easier here or am I doomed to look through the shelveset, at each file with conflicts, look at the server version, look at the local version, copy the parts of the local version into a notepad file, copy them into the server version…etc etc. It seems a horrible mess.

Can anyone help me out ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:10:41+00:00Added an answer on June 11, 2026 at 5:10 pm

    You should not be required to choose only the server version or the local version. You should be able to instead resolve the conflicts using a 3-way merge tool like you’re used to.

    It sounds like you’re following the recommended practice here:

    • If you have some file, let’s say it’s latest at version 2, and you start editing it you’ll have a pending change on that file.
    • When you shelve that file (undoing pending changes), you’ll be back at version 2 with no pending changes.
    • If you edit that file and check it in, the server will be at a new version (let’s say it’s version 3)
    • If you were then to unshelve that existing shelveset, your changes will again be against version 2, meaning when your changes are pended against a version that’s not latest:

      Source Control Explorer

    Understandably, this means you have a conflict. You’ll have the ability to resolve these conflicts when you do a Get Latest or a Checkin. These should be shown in a view in the bottom of Visual Studio:

    Resolution Options

    As you note, there are the options to Take Server Version and Keep Local Version. But you should also be given the opportunity to AutoMerge (if the changes could be automerged, ie, you don’t have regions of the file that have changed in both the server and the local file) and Merge Changes In Merge Tool (which will open a 3-way merge tool.)

    If you select Merge Changes In Merge Tool, you will be given the built-in 3-way merge tool:

    3-Way Merge Tool

    If you don’t like the built-in 3-way merge tool (I don’t like the one included in 2010, VS 2012 includes a much nicer experience), you can plug in any 3-way merge tool in the Visual Studio Options:

    Configure Merge Tool

    If the option to Merge In Merge Tool is completely lacking, it’s possible that TFS thinks that you’re working on binary files. In TFS, when files are marked as binary (more accurately, when “File Merging” is set to “Disabled”) then you will not be given the option to automerge these files, or to merge them in the merge tool. This is an optimization to avoid downloading two extra copies of large binary files during conflicts, and to avoid trying to cram them into the merge engine.

    You can configure the filetypes that are “not mergeable” by opening Team Explorer, right clicking on your Project Collection and selecting Team Project Collection Settings > Source Control File Types… Ensure that the type of files that you’re working with are listed as “mergeable” in this dialog:

    File Types Dialog

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read about the push technologies recently. Using it real-time data streaming is
I have recently read about XSLT and Xpath. But i came across document root
I recently read about SQLite and thought I would give it a try. When
I recently read about time complexity and I found out that Quick sort has
I have recently read topics about memory fragmentation: How to solve Memory Fragmentation and
I recently read an article about password hashing . How are MD5 or SHA1
I recently read an article about c#-5 and new & nice asynchronous programming features
I recently read a post about no longer needing to declare ivars as well
I recently read a post online about rotating text with css. This appealed to
I've read about Single-Page Applications recently and wanted to try one out. After watching

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.