1,如果某一个文件夹与svn的关联?很抱歉,TSVN并不提供这样的功能,只能手动把所有.svn文件夹都干掉的方式来取消掉关联。手动一个一个的干掉还不累死啊??来个自动的吧!
用下面的方式在问家家右键加一个“Delete SVN Folders”的菜单,多简单啊~呵呵~
用法:先建一个文件叫xxx.reg
然后再里面写入下面内容:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""
然后再你要取消关联的文件夹上点Delete SVN Folders。
删除完了之后开心了,可是发现文件夹竟然还是下面这个样子
妈的,该死的windows的图标缓存bug,svn官方解释:
The Windows icon cache is a fairly buggy creature. You can solve this in one of the following ways:
- Install Microsoft's TweakUI and run the option to rebuild icons.
- Or increase the icon cache size. Go to HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer and add a new String Value called Max Cached Icons. The default value is 500 - try increasing it to 2048 (see Q132668 in the Microsoft knowledge base for more details).
- Or delete the file called ShellIconCache in your Windows directory. And reboot.
- With TortoiseSVN 1.3.0 and later, you can also rebuild the icon cache by calling TortoiseProc from the command line like this TortoiseProc.exe /command:rebuildiconcache
不爽,都不爽,还好咱用的1.3.0以上版本,用自带的命令重建一下缓存吧~
TortoiseProc.exe /command:rebuildiconcache
运行完,一切正常了哦~