Skip to content

Commit 74242a4

Browse files
[windows] disable TSVNCache.exe (#8374)
TortoiseSVN scans all drives for SVN repos. it eats disk IO, let us add registry setting which disables that activity
1 parent 62e9da7 commit 74242a4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

images/win/scripts/Installers/Warmup-User.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ Copy-Item ${env:USERPROFILE}\AppData\Local\Microsoft\VisualStudio -Destination c
1919

2020
reg.exe load HKLM\DEFAULT c:\users\default\ntuser.dat
2121
reg.exe copy HKCU\Software\Microsoft\VisualStudio HKLM\DEFAULT\Software\Microsoft\VisualStudio /s
22-
reg.exe unload HKLM\DEFAULT
2322

23+
# disable TSVNCache.exe
24+
$registryKeyPath = 'HKCU:\Software\TortoiseSVN'
25+
if (-not(Test-Path -Path $registryKeyPath)) {
26+
New-Item -Path $registryKeyPath -ItemType Directory -Force
27+
}
28+
29+
New-ItemProperty -Path $RegistryKeyPath -Name CacheType -PropertyType DWORD -Value 0
30+
reg.exe copy HKCU\Software\TortoiseSVN HKLM\DEFAULT\Software\TortoiseSVN /s
2431

25-
Write-Host "Warmup-User.ps1 - completed"
32+
reg.exe unload HKLM\DEFAULT
33+
Write-Host "Warmup-User.ps1 - completed"

0 commit comments

Comments
 (0)