Is there a way to use a repository as a “template” to start a new repository?

瘦欲@ 提交于 2020-01-24 11:22:39

问题


I have a Subversion repository that contains the externals and some files to start creating a new site, such as a basic login setup based on libraries.

What I'm wondering is if there is a way to "copy" this repository into another that will keep the externals so I don't have to set them up again? I'm not worried about keeping the history. This would be similar to performing an export and then setting the externals, but would be a one step process. Is there a way?


回答1:


The commands you need are:

svnadmin dump and svnadmin load




回答2:


Please, make sure your new repository has a new UUID. If you just copy your repository some subversion commands will see the repository as the same.

(See svnadmin help setuuid if you need to change your uuid).

Keeping the same UUID will break some forms of caching, intra-repository merges and probably even more in future Subversion versions. (The UUID is the primary key to identify what is from a different or the same repository)



来源:https://stackoverflow.com/questions/680518/is-there-a-way-to-use-a-repository-as-a-template-to-start-a-new-repository

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