Question: There is a known issue with SVN repositories and the windows indexing service fighting over .svn metadata files. [Here for more details.](http://schleichermann.wordpress.com/2009/12/09/svn-tortoisesvn-cant-move-the-file-or-directory-is-corrupted-and-unreadable-windows-7/)

How can we set it up so there are **automatically** no problems having subversion repositories indexed by windows (Vista/Win7). *(We don't want to have to manually do something every time we add repo directory.)*

One idea is to setup Windows to automatically not index folders named ".svn", however I can not find a way to do this.

I know you can disable certain extensions, but that doesn't seem to work since the svn metadata files are in a folder.

Note: The

Answer: 
AFAIK, Windows Indexing service on Windows 7 only looks within the Users folder as default (correct me if I am wrong). If you have your SVN repositories within your personal folder, you can:

a) Putting your SVN repositories elsewhere

b) By excluding those folders from the index. [Here](http://www.windowsnetworking.com/articles_tutorials/Exploring-Windows-7s-New-Search-Features-Part2.html) you will find how to exclude a folder.
The obvious fix would be to change Subversion to set this "don't index" flag whenever it creates a .svn directory. The problem is that this feature will be no longer needed when it's introduced.

The known problem will most likely go away in the Subversion versions that's currently being developed (version 1.7). There will be far less file operations inside the .svn directory, and also just 1 .svn directory per working copy.

This makes it less likely that the problem will occur, and also makes it far easier to disable indexing, because there's just a single .svn folder.