
Originally Posted by
kajar9
Well, there is a solution what is bit odd But it affects performance ALOT!
This is good to do if the addon you SVN-ed has a lot of files
Like wiremod ,PHX or SB does
Create a folder outisde garrysmod directory, then SVN checkout wiremod there
then EXPORT wiremod to your addon folder (right click on the folder -> Export)
now you see in addons that the "adv_duplicator" "wire" and others don't have the svn symbol on them
SVN files almost doubles the size of wiremod
it has multiple .svn files for every file in SVN and 7 folders per one actual folder (maybe more)
And garrysmod loads them
Export cleans the wiremod from .svn files and folders
And leaves you only things wiremod really needs
if you want to update, then just update the wire folder outside garrysmod and export again.
This works great on addons witch have many files
Wiremod - Works alot faster (with .svn files 120Mb 7647files 1935folders, without .svn files 59.5Mb 2663files 215folders) this includes wire model pack
This is a ratio 2.4 svn files per ONE ACTUAL FILE and 8 folders per ONE ACTUAL FOLDER
I did it on PHX - works alot faster (with .svn files 1.02 GB, without 548Mb) - see the difference
Also on SB - WOW effect! - Removed from my computer at the moment
Export (at least in tortoiseSVN) is a pain in the ass, especially when you have 20 seperate svn addons. So, instead, I stole your idea, but I just copy the actual folders (.svn files and all) to my addons folder, then use windows search to delete all instances of *.svn.
edit: I tried to use windows search, but it hung for so long that I assumed it crashed and cancelled it. I ended up using a batch script I "borrowed" from the internet. This script also serves well as a way of inducing epilepsy.
Code:
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"
For reference, before and after numbers, gathered from right click -> properties:
117,065 files, 19,816 folders, 4,865,038,356 bytes, 5,204,897,792 bytes on disk
46,374 files, 3,720 folders, 3,167,753,522 bytes, 3,284,201,472 bytes on disk
Batch took ~1 minute to complete.
Of course, this method mean more total HDD consumption from your addons (assuming you keep a seperate copy with the svn files for updating), but potentially faster running and loading times
Bookmarks