Issue #78 invalid

Not modify the project files after adding solution to scc

Juan Francisco Miranda Aguilar
created an issue

Would it be possible letting the project files untouched after adding the solution to SCC, instead of adding this tags

  • <SccProjectName>
  • <SccLocalPath>
  • <SccAuxPath>
  • <SccProvider>

to them??

It's a bit annoying the task of removing this tags manually if you have to change the SCC for the solution.

Comments (4)

  1. Sergey Antonov repo owner

    This is configurable in the HgSccPackage settings.

    • Open the MSVS
    • Go to menu Mercurial -> Options -> Main
    • Remove check mark for "Use Scc bindings in projects and solutions"

    After that HgSccPackage will not add a Scc binding to a project/sln files when you use "Add to Source Control" command.

    You can also add/remove Scc bindings to an existing project/sln files using a Mercurial -> Change Scc Bindings command.

  2. Juan Francisco Miranda Aguilar reporter

    Thanks for your help, but if I do this way, does the plugin detect if the project is controlled with Hg and automatically changes the source control provider like the git plugin does? I opened some projects, and it doesn't, I have to change it manually.

  3. Sergey Antonov repo owner

    Nope. That is the whole point of using Scc bindings.

    Without a Scc binding in the project there is no way for MS Visual Studio to load a correct source code control provider.

    When MS Visual Studio loads a project and sees a Scc bindings it uses SccProvider string to load a registered source code control provider for that project.

    Some plugins tries to use some hacks to outsmart VS, but those are generally doesn't work.

  4. Log in to comment