Tortoisesvn not showing up correct status after commit

﹥>﹥吖頭↗ 提交于 2019-12-05 14:03:43

Yes, it's just that the pane is not refreshing until another action is done. I have seen this on Windows XP as well. I imagine it's a bug in TortoiseSVN.

Cleaning up the project typically corrects the icon. Right click on the folder and select TortoiseSVN -> Clean up. I suspect this updates the TortoiseSVN cache. (My environment is also Win 7 x64)

Update: In TortoiseSVN 1.7, cleanup now brings up a dialog which includes an explicit option to "Refresh shell overlays." From the cleanup documentation,

Refresh shell overlays

Sometimes the shell overlays, especially on the tree view on the left side of the explorer don't show the current status, or the status cache failed to recognize changes. In this situation, you can use this command to force a refresh.

Update 2: This can be automated in 1.7 using TortoiseProc.exe and Client Side Hook Scripts. I often run into inconsistent status after a commit, so I added a post-commit hook script wrapping the following command into a batch file called refresh_shell.bat,

"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:cleanup /nodlg /noui /refreshshell /pathfile:%1

(The batch file is necessary to accept the argument to the temp file containing the paths that were committed.)

Note also when configuring the hook script that the working copy path is the directory tree that the hook is enabled for.

See Automating TortoiseSVN for more on using TortoiseProc.exe and TortoiseSVN's Settings for more on Client Side Hook Scripts.

Close and open explorer window doesn't help. Kill the TSVNCache.exe process helps.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!