Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

repository

svn

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?

like image 514
Darryl Hein Avatar asked Jan 27 '26 21:01

Darryl Hein


2 Answers

The commands you need are:

svnadmin dump and svnadmin load

like image 135
Jonathan Parker Avatar answered Jan 29 '26 11:01

Jonathan Parker


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)

like image 28
Bert Huijben Avatar answered Jan 29 '26 11:01

Bert Huijben



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!