| [TSVN] Studies into SVN::UpdateShell
From: Will Dean <svn_at_indcomp.co.uk>
 Date: 2004-11-01 22:58:21 CET 
Hi,
 On my systems (all WinXP), I have found that TSVN has *never* updated icon 
 Anyway, I decided to have a look at SVN::UpdateShell, and see how it worked.
 Here's what I found:  (Don't fix anything until you've read it...)
 1.  On XP at least, SHGetFileInfo fails with a / path.  (Funny that I was 
 2. The SHChangeNotify functions should have had SHCNF_FLUSH passed as part 
 3. SHChangeNotify apparently needs the 3rd and 4th parameters around the 
 Anyway, I fixed one and two, but it still didn't work.
 After a bit of Googling around, I tried adding
 SHChangeNotify( SHCNE_ASSOCCHANGED, SHCNF_FLUSHNOWAIT, 0, 0);
 at the end.  This didn't work either *UNTIL*, I took the other 
 Then it started to work for the 'add' operation, which is a beautiful thing 
 But it still didn't work for 'commit'.  I think that was because 
 I am currently running with ShellUpdate just containing the one 
 1. It doesn't actually work *all* the time - I think there is possibly some 
 2. Does it work on anything other than XP?
 3. Can it cause huge folder updates (or even desktop icon redraws, which 
 4. What's the history of this function before my meddling?  It was very 
 Anyway, things to think about perhaps.
 Cheers,
 Will
 PS.  I had a complete re-arrangement of all the #includes in TortoiseProc 
 ---------------------------------------------------------------------
 | 
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.