TortoiseSVN overlay icon related issues and solutions

Time: 2017-08-04Source: Huajun InformationAuthor: Hua Hua

In the process of using TortoiseSVN, a free open source client, users often encounter many usage problems. For example, many TortoiseSVN users will ask questions related to TortoiseSVN overlay icons, such as: why there is no overlay icon, why the icon is only on It is displayed on the local disk, etc. Then, follow the Huajun editor to find out.

 

 

  TortoiseSVN

TortoiseSVN

Issues and solutions related to TortoiseSVN overlay icons:

Why is there no overlay icon?

Did you restart your computer after installation? You haven't restarted yet. TortoiseSVN is a shell extension for Windows Explorer. It will be started together with Explorer.

Go to TSVN's settings interface and at least activate the driver modification function of icon overlay. The installer will automatically activate the icon overlay function for the current user (it will not automatically activate it for other users...) But since you are not using TSVN by installing the user, so You need to manually activate the icon overlay feature.

Not all icons are covered!

You may find that not all icons are used on your system. This is because Windows only allows a maximum of 15 icons to be overwritten. Windows uses 4 of them, and the remaining 11 are used by other applications. If your colleague is using TortoiseCVS, then there won't be enough slots, so TortoiseSVN manages to be a "good citizen(TM)"? Limiting the use of icons leaves more opportunities for other applications.

Generally speaking, modifications and conflicts are always loaded and visible.

Deletions will be loaded if possible, but modified status will be used if there are not enough locations.

Read-only will be loaded if possible, but if there are not enough locations the normal state will be used.

The lock will only be loaded if there are less than 13 icon overlays loaded. Otherwise the normal state is used.

Additions will only be loaded if there are less than 14 icon overlays loaded. Otherwise the modified state will be used

Why does the icon only display on the local disk and not on the network disk?

Go to the Settings -> Look and Feel -> Icon Overlays to check the drive type for the overlay icon you want to see. Be aware that using icon overlays will slow down the entire system, not just TortoiseSVN.

Why do icon overlays get messed up on SUBSTed drives?

If your working copy is on a SUBST drive, the icons may be messed up.

This error occurs because the cache tries to read state from two different locations at the same time. But these locations are actually the same, so the same working copy reads both states at the same time.

There is a simple way to solve this problem: just exclude the original directory where the overlay icon is displayed (settings->icon overlays->exclude paths).

For example, if you map stationfolderwc to g: , add the location "stationfolderwc*" to the exclude pattern.

Why does the icon overlay show the wrong status?

Sometimes you find that the icon overlay does not reflect the correct status of the file or folder. Usually, hitting F5 will bring the icon back to its correct state (you may need to wait a few seconds for the cache to find the correct state again).

The tree view on the left side of the explorer is something else entirely. It won't update the icon, no matter how many times you hit F5. This is because the resource manager is not accessible to TortoiseSVN.

A quick note: the tree view is always displayed from the entire resource manager, including network drives and other namespace extensions, and since these can be very slow (e.g. a slow network drive), the resource manager cannot always request them. Icon overlay updates the icon, even if you tell Explorer that the folder has been modified and should update the icon according to the icon overlay, it still won't work. First check whether the folder has really been modified. If the resource manager thinks that the folder has really been modified, it will update these icons.

Now, since the Subversion status of the folder has nothing to do with its own status, the folder itself has not actually been modified (only some files in the .svn folder have been modified), so the explorer cannot update the icon.

There are some tips and workarounds to make Explorer and even the file tree on the left side of Explorer refresh the icon, but these tips and workarounds obviously won't work in Cocoa.

A commonly used trick, but it is very slow and TortoiseSVN cannot be used immediately, which will make the entire system much slower. However, you can manually activate it using the ‘cleanup’ command through the working copy administrator account. When the cleanup command completes, you have to wait a few seconds for the directory tree to update the icons.

Why does the icon overlay sometimes turn into a random pattern?

The Windows icon cache has a lot of bugs. You can use the following methods to solve this problem:

Install Microsoft's TweakUI with options to recreate icons.

Or increase the icon cache. Add a new string Max Cached Icons to HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionExplorer. Its default value is 500 - try increasing it to 2048 (see Q132668 in the Microsoft Knowledge Base).

Or delete the ShellIconCache file in the Windows directory and then restart the computer.

For versions of TortoiseSVN 1.3.0 or later, you can call TortoiseProc on the command line to rebuild the icon cache, TortoiseProc.exe /command:rebuildiconcache

Related articles更多>>

Popular recommendations