Where does SVN store the data on the server side?

拟墨画扇 提交于 2019-12-10 17:19:56

问题


I have created an svn repo on my web host server and successfully commit files to it and updated files from it but I can't seem to actually find the files on the server!

My svn repo is in ~/svn/my-first-repo/ which contains the following: ./ ../ README.txt conf/ db/ format hooks/ locks/.

But where are the files I'm actually versioning?!

It's definitely worked because I was able to checkout the same remote repo into another local directory and all the files magically appeared! As if from nowhere...


回答1:


The files themselves are within the repository. If you want to see them, then you need to perform a checkout. Because subversion keeps complete change history for all files within your project, you will never see a fully reconstituted working copy underneath the repository's folder structure.

Basically, what's happening is a "versioned filesystem" that sits on top of your host filesystem. You should probably read up on the Subversion filesystem in more detail so you can understand exactly what is happening when you commit changes to your repository.




回答2:


SVN stores the versioned files in a database, not in the filesystem. So, it's all in there under the db directory. The specific database SVN uses is BerkeleyDB.

More information about SVN's backend storage can be found in the free online Subversion book.




回答3:


Look for the FSFS-structure. http://svn.apache.org/repos/asf/subversion/trunk/notes/fsfs



来源:https://stackoverflow.com/questions/2132947/where-does-svn-store-the-data-on-the-server-side

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!