Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have been using netbeans for many years now and recently I have moved from PHP/Git/Netbeans to C#/TFS/VS10.

It has been very good so far, yet I miss this one little feature I enjoyed so much in Netbeans is... local file history.

Whenever I was working on something I could test different ideas and then simply reverting or even comparing changes at different time of the day or even different days.

I was wondering if there is any VS10 extension or some sort of plugin that would let me achieve similar functionality (internal version control sort of thing). I would use TFS but we are only allow to check in our changes when they are actually read for production. Also I can't find revert changes button in TFS. I wouldn't want to create a branch either.

I'm so desperate I was going to put hg or git over my TFS folder just so I can achieve this I'm just hoping there is some better solution for this.

share|improve this question
add comment

3 Answers 3

up vote 5 down vote accepted

You can try the shelve function of TFS. It is a bit cumbersome but will work. I create different shelve sets with descriptive naming convention. While searching on google I came up with this auto shelve extension. I haven't used it but will surely try on Monday to see if it is useful.

share|improve this answer
    
I'll install auto-shelve extension to see if it meets my criteria. Are shelves accessible to other developers? I thought that one reason for having shelves in TFS is to share code without "checkin in" –  Luke May 26 '11 at 19:39
    
Yes shelves are accessible to other developers. One issue is that if you shelve code from a branch you or another developer cannot unshelve to a different branch. But this is possible if you install the TFS power tools msdn.microsoft.com/en-us/vstudio/bb980963 –  Pratik May 26 '11 at 22:44
add comment

I have been using Mercurial repositories locally on my machine for the same reason and it's been working rather well, so it may not be such a desperate solution?

I don't use a plugin integrated with VS as I prefer just using the command line, though I believe some are available for various source control options, e.g., for Git : http://stackoverflow.com/questions/507343/using-git-with-visual-studio

share|improve this answer
    
Ah I see. I use hg tortoise for my other (on the side) projects. I might try if that works a bit better. Not perfect though since I have to remember to commit all the time TFS and HG.... Lets hope someone has a better solution. –  Luke May 26 '11 at 2:38
add comment

Visual Studio 2010 with TFS installed will give you the option in the context menu for each file to "Get Specific Version". From there, you can get any copy of the file that has been checked in.

If you want to be able to work with multiple versions of the file without worrying about losing your changes, then I agree with @Pratik that using shelve sets is your best bet.

share|improve this answer
1  
Seems very cumbersome for a simple feature which has been in net beans for quite a while now. –  Luke May 26 '11 at 19:35
add comment

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.