Question

TortoiseHG's context menu entries totally mess up Windows 7 explorer's context menu's appearance, and I can get by fine with the hg command line tools. However Tortoise Overlay icons are must-have for me.

How can I disable TortoiseHg's context menu commands but still have the Tortoise Overlay icons appear in hg repository folders?

Was it helpful?

Solution

I had the same problem, but it appears to be fixed in the latest TortoiseHg - if you still have the issue, try upgrading.

OTHER TIPS

To disable or add items to the context menu:

  • Right click to bring up the context menu
  • Select TortoiseHg ----> Explorer Extension Settings
  • To Remove : Hide context menu except for repositories
  • Or Use these settings to add or remove context menu items.

You need to remove following Windows registry keys using "regedit.exe" tool. Before removing these, please create backup of registry. And note that I cannot guarantee if you get any problem.

HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\InternetShortcut\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\TortoiseHgCMenu

Try this command:

regsvr32 /u "C:\\Program Files\\TortoiseHg\\tortoisehg.dll"

To re-enable shell extension:

regsvr32 "C:\\Program Files\\TortoiseHg\\tortoisehg.dll"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top