How to quickly switch version control providers in Visual Studio 2010?

I am currently working on .Net projects using Git or Mercurial (Hg) controls. I am using Visual Studio 2010 for all of these projects. Since I often have to switch control package providers, I was wondering if you have a quick way to do this, so I do not need to run Tools -> Options -> Source Control once an hour.

The best solution would be if Visual Studio found out which control source they needed or maybe remembered which provider was used for a particular project. It can be done?

+8
git version-control mercurial visual-studio-2010
Jul 13 '11 at 11:37
source share
2 answers

With a push in the right direction, I managed to deal with this problem even better than expected - without switching.

For Mercurial solutions I use VisualHG and for Git I use the Git Source Control Provider . I also installed HgSccPackage . Now I really don’t know how and why this works, but I have GitSCC selected as the source control source in the settings, but when I load the Mercurial project, which accepts VisualHG. All I need to do is install SCC in VisualHG when I first start the project, close the project, return to GitSCC, and when the project is restarted, VisualHG will be used for it.

Interestingly, it does not work without HgSccPackage installed. If anyone can explain this, please.

Please note that this does not look like a return trip.

+3
Jul 22 '11 at 12:08
source share

I use Git in conjunction with VS 2010, keeping the command line screen open. I am doing my work in Visual Studio, and when I am ready to commit, I switch to the command line screen.

If you do this, you can use Git and Mercurial side by side in combination with VS 2010.

+1
Jul 21 '11 at 8:00
source share



All Articles