Not modify the project files after adding solution to scc

Juan Francisco Miranda Aguilar avatarJuan 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

    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

    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

    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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.