Home » Questions » Computers [ Ask a new question ]

Automatically Disable Windows 7 From Indexing .svn metadata

Automatically Disable Windows 7 From Indexing .svn metadata

There is a known issue with SVN repositories and the windows indexing service fighting over .svn metadata files. Here for more details.

Asked by: Guest | Views: 206
Total answers/comments: 2
Guest [Entry]

"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."
Guest [Entry]

"You can essentially tell Windows Search to ignore .svn folders by tweaking the registry.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Search\CrawlScopeManager\Windows\SystemIndex\DefaultRules\11]
""URL""=""file:///*\\.svn\\*""
""Include""=dword:00000000
""Suppress""=dword:00000000
""Default""=dword:00000001
""Policy""=dword:00000000

The URL matches folders named "".svn"" anywhere on your filesystem. (The number after default rules should be unique - i.e. if you already have a default rule 11, choose another number)."