Does the svn 1.7 working copy format store the entire history of the repo?

怎甘沉沦 提交于 2020-01-04 14:13:34

问题


I'm curious about the capabilities of the new working copy format in Subversion 1.7 (the single .svn directory at the root).

Does it store an entire history of the repo, like git does? Or are the files in pristine merely a copy of the current (unedited) revision from the server? Does svn support working disconnected at all - committing multiple times locally before pushing to the server?


回答1:


Subversion only maintains the revision you currently have checked out locally. (Some meta data about other revisions might be cached depending on your client, but the actual file content from other revisions will not be stored.)

There's no way to commit other than committing to the actual repository. Just a design difference of git vs subversion (centralized vs distributed).




回答2:


No, the .svn directory keeps a pristine version of what you've checked out of the repository. (i.e. the BASE revision) It does not keep all the history.

SVN does not work disconnected. You need to have a connection to the server, unless of course you've checked out your working copy from a URL like file:///c:/my_dir -- which is to say you're working with a local repository.



来源:https://stackoverflow.com/questions/13574743/does-the-svn-1-7-working-copy-format-store-the-entire-history-of-the-repo

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