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

Re: bugs in TSVNCache

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-08-21 16:26:14 CEST

Brett maxfield wrote:
> Hi,
>
> I have some bugs with TSVNCache.
>
> 1. It locks files on my removable drive, stopping me from unmounting it,

It doesn't lock files. It keeps a watcher handle on the topmost folder
(usually the root of the drive) which the explorer ever requested info for.
And it doesn't keep that handle when you try to unmount the drive.
Windows sends a message to the cache requesting to close the handle,
which the cache then does. Unfortunately, windows doesn't wait for the
cache to close the handle and throws the error. When you try again to
unmount it a second time, it will succeed.

> even though there are no svn repositories ever been used on that drive
> (there might be backups of working folders, but they have never been
> used on that drive)

The cache monitors every drive (which you have specified in the settings
dialog).

> 2. It causes an explorer crash when browsing a windows networking
> network share with very large files in it

Sorry, but that's not a bug in the cache but a bug in the explorer.
(otherwise the *cache* would crash, not the explorer). The bug is known
(sorry, don't have the link to the MS issue right now, but I'm sure
you'll find it yourself if you really need to know).

> A workaround might be for TSVNCache to kill itself off after a
> configurable period of idleness (15 minutes?)

And then? It would stop working, which means it just doesn't know
anymore what the status of your files is. So basically, it would be
completely useless after you restart it again.

> An alternate fix might be for TSVNCache to only cache or lock files on a
> drive letter where there has been recent svn activity, and not every
> single drive where there might have ever been be .svn folders, but has
> never been explicitly opened in explorer.

Use the settings dialog and specify include/exclude patterns for the
overlays.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Aug 21 16:27:04 2006

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.