As of version 1.5.0 and later, TortoiseSVN allows you to disable (actually, hide) context menu entries. Since this is a feature which should not be used lightly but only if there is a compelling reason, there is no GUI for this and it has to be done directly in the registry. This can be used to disable certain commands for users who should not use them. But please note that only the context menu entries in the explorer are hidden, and the commands are still available through other means, e.g. the command line or even other dialogs in TortoiseSVN itself!
The registry keys which hold the information on which context menus to show are HKEY_CURRENT_USER\Software\TortoiseSVN\ContextMenuEntriesMaskLow
and HKEY_CURRENT_USER\Software\TortoiseSVN\ContextMenuEntriesMaskHigh
.
Each of these registry entries is a DWORD
value, with each bit corresponding to a specific menu entry. A set bit means the corresponding menu entry is deactivated.
Tabela C.1. Entradas do menu e seus valores
Valor | Opção do Menu |
---|---|
0x0000000000000001 | Obter |
0x0000000000000002 | Atualizar |
0x0000000000000004 | Submeter |
0x0000000000000008 | Adicionar |
0x0000000000000010 | Reverter |
0x0000000000000020 | Limpar |
0x0000000000000040 | Resolver |
0x0000000000000080 | Alternar |
0x0000000000000100 | Importar |
0x0000000000000200 | Exportar |
0x0000000000000400 | Criar Repositório aqui |
0x0000000000000800 | Ramificar/Rotular... |
0x0000000000001000 | Combinar |
0x0000000000002000 | Apagar |
0x0000000000004000 | Renomear |
0x0000000000008000 | Atualizar para Revisão |
0x0000000000010000 | Diff |
0x0000000000020000 | Log |
0x0000000000040000 | Conflitos |
0x0000000000080000 | Reposicionar |
0x0000000000100000 | Verificar alterações |
0x0000000000200000 | Ignorar |
0x0000000000400000 | Navegador do Repositório |
0x0000000000800000 | Autoria |
0x0000000001000000 | Criar Correção |
0x0000000002000000 | Aplicar correção |
0x0000000004000000 | Gráfico de revisões |
0x0000000008000000 | Bloquear |
0x0000000010000000 | Remover bloqueio |
0x0000000020000000 | Propriedades |
0x0000000040000000 | Comparar com URL |
0x0000000080000000 | Excluir não versionados |
0x0000000100000000 | Mesclar tudo |
0x0000000200000000 | Diferença com a revisão anterior |
0x0000000400000000 | Colar |
0x0000000800000000 | Atualiza a cópia de trabalho |
0x0000001000000000 | Diferenças mais tarde |
0x0000002000000000 | Comparar com 'filename' |
0x0000004000000000 | Unified diff |
0x2000000000000000 | Configurações |
0x4000000000000000 | Ajuda |
0x8000000000000000 | Sobre |
Example: to disable the “Relocate” the “Delete unversioned items” and the “Settings” menu entries, add the values assigned to the entries like this:
0x0000000000080000 + 0x0000000080000000 + 0x2000000000000000 = 0x2000000080080000
The lower DWORD
value (0x80080000
) must then be stored in HKEY_CURRENT_USER\Software\TortoiseSVN\ContextMenuEntriesMaskLow
, the higher DWORD
value (0x20000000
) in HKEY_CURRENT_USER\Software\TortoiseSVN\ContextMenuEntriesMaskHigh
.
To enable the menu entries again, simply delete the two registry keys.