[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Why doesn't 'svnadmin create' creates tags, branches, trunk?

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Thu, 7 Oct 2010 12:14:09 -0400

> > 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
> (automatically)
> >
> > # ls /var/lib/svn/new_repo
> > branches
> > tags
> > trunk
>
> I have several repositories of my own, and I support several more,
> for
> 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
> separate
> independent projects. You should stick your branches & tags dir at
> whatever
> 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.

BOb
Received on 2010-10-07 18:14:54 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.