> > From: Tech Geek [mailto:techgeek12345_at_gmail.com]
> > So why don't we have (read as a feature) something like this:
> > # svnadmin create --tbt new_repo
> > and a repositroy with following strcuture is created
> > # ls /var/lib/svn/new_repo
> > branches
> > tags
> > trunk
> I have several repositories of my own, and I support several more,
> various companies that I work for. None of them have the branches
> & tags at
> the top level of the repo, because the repo actually contains many
> independent projects. You should stick your branches & tags dir at
> levels of the tree you'd be interested in branching & tagging.
> If you did the -tbt switch, it's just a lazy way to eliminate a
> single "svn
> mkdir" after the "svnadmin create." Not really worth while, imho.
> If you
> can remember the "-tbt" then you can remember the "svn mkdir."
Create a template repository with the folders you want in it. Then dump it. Save that file somewhere.
After you create a repo you can do an svnadmin load --ignore-uuid < templatedumpfile
(so you retain the unique uuid in the newly created repo).
You can even create a batch/command for this to do it with one command.
Received on 2010-10-07 18:14:54 CEST