问题
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