Reputation: 153
today I realized that the hidden .svn folders within my folders under version control eat up ~16 GB of hard drive space. I am using a SSD drive so this is quite a lot. Do I really need these huge subfolders? As far as I understand they are used for administration but why are they approximately the same size as the folder under version control itself?
Thanks!
Upvotes: 6
Views: 4140
Reputation: 17336
The .svn/text-base/
directories contain un-changed versions of the version-control files. This accounts for your duplication and similar size to the directories outside of .svn
. These files enable certain operations to be streamlined (e.g. diffs).
Advantages of this approach, as mentioned in documentation include:
network-free checks for local modifications and difference reporting, network-free reversion of modified or missing files, more efficient transmission of changes to the server
Upvotes: 3
Reputation: 164
These folders are necessary as long as you want to use SVN version control system. They are used to keep trace of your local version changes in order to commit your work and checkout (eventually merging with your information) upstream data.
If don't want to use version control anymore you could delete all .svn folders. If you don't mind keeping history you could make a clean checkout, delete .svn folders and then create a new repository.
Upvotes: 2