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

Re: TSVNCache.exe opens filehandles

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-07-21 21:23:40 CEST

Kevin Grover wrote:
> Actually, it probably won't matter. I've discovered that tsvncache
> latches onto drives that I've never used an SVN command on (either via
> Explorer or cmd). This makes sense (because it's a shell extension, so
> if I access a directory through Exporer, tsvncache 'sees' the path).
>
> It would be nice to have a TSVN Shell option to 'Flush' the TSVN cache
> (perhaps selectable on an advanced tab so as to no confuse others) so it
> would clear all cached handles. That way I could cleanly unmount drives
> or delete directories, which open handles in tsvncache prevent, without
> just killing the processes. Or, the TSVN Flush command could popup a
> window allowing me to select drive and/or subdirectories to flush ---
> maybe that's overkill....

TSVNCache already reacts to the windows message WM_DEVICECHANGE which
windows uses to ask all programs interested (like TSVNCache) to close
any open handles on a disk. When TSVNCache receives such a message, it
closes all handles on the disk. After that, windows can unmount the
device just fine.
You may have to try two times to "eject" a device, because the cache
needs some time to close the handle (some threads may still need it, and
it has to wait for those threads to finish), and windows only waits
about a second before giving up. So if you try a second time after
windows tells you that it can't eject the device, it will work.

There's not much more TSVN can do than that.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Jul 21 21:24:25 2006

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.