[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Bugg with solution...

From: Max Kielland <max.kielland_at_gmail.com>
Date: Tue, 23 Sep 2008 05:49:36 +0200

Hello,

PROBLEM:
After doing any action that changes a files status, such as "SVN Commit..." or update, the icons in the file browser is not updated automatically. This has to be done manually by hitting F5.

TRY IT OUT:
Change one of your files checked out from SVN so it turns red (changed). Commit the file and it should be green (up to date). This is not the case, you have to manually refresh (F5) the file browser to see the change.

SOLUTION:
You need to send a Shell Notification message to tell windows that it has to refresh it's icons (imediately).

This is when you know what directory to update.
#include <shlobj.h>
SHChangeNotify(SHCNE_UPDATEDIR,SHCNF_PATH,"D:\\Update\\my\\path",NULL);

If you just want to update all icons (regardless of directory), you can "fool" windows by sending this message.
#include <shlobj.h>
SHChangeNotify(SHCNE_ASSOCCHANGED,SHCNF_IDLIST,NULL,NULL);

You can read more about SHChangeNotify at http://msdn.microsoft.com/en-us/library/bb762118(VS.85).aspx

I hope someone will add this simple line so we don't have to manually refresh the browser window ;)

// Regards, Max
Received on 2008-09-23 05:49:46 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.