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

Re: missing from svnbook: syntax for creating the TTB directories?

From: Kevin Grover <kevin_at_kevingrover.net>
Date: Tue, 17 Jun 2008 17:59:22 -0700

On Tue, Jun 17, 2008 at 2:56 PM, Steve Stanley <w3steve_at_berkeley.edu> wrote:
> I feel like the answer should be there somewhere, but -
> What is the syntax for creating the TTB directories that are mentioned
> several places in svnbook?
> I'm almost certain one doesn't use a shell mkdir command.
> I'm almost certain that one creates them using
> $ svnadmin create /path/to/repos
> $ svnadmin create /path/to/repos/trunk
> $ svnadmin create /path/to/repos/tags
> $ svnadmin create /path/to/repos/branches
> or maybe
> $ svn copy file:///home/repos/trunk \
> file:///home/repos/branches/bar_branch
> creates the branches parent directory as needed (like svn import)? But the
> online documentation for svn copy is silent on this.
> It would help me (and other brand-new administrators?) to actually see the
> commands, perhaps here where the TTB organization in discussed:
> http://svnbook.red-bean.com/en/1.4/svn.reposadmin.planning.html
> or in a new paragraph here where the svnadmin create command is shown:
> http://svnbook.red-bean.com/en/1.4/svn.reposadmin.create.html
> my .02

As pointed out 'svnadmin create' creates repositories. Just remember:
you only use svnadmin to do things to repositories. (Virtually) All
work on working copies happens with 'svn'.

Personally, when I as learning SVN I found this difficult also. In
Windows I create an 'svninit.bat' file to initialize the directories
for me. However, I soon learned quicker ways.

For unix, I use this:

REPOURL is a URL to the root of the repository (should be a newly
created repo, however, it could also be subproject)
For example REPOURL could be

svn mkdir REPOURL/{trunk,tags,branches} -m "Initial Directory Structure"

This uses the brace expansion magic of bash to create all three
directories in one atomic commit.

On windows, I use this:

svn mkdir %r%/trunk %r%/tags %r%/branches -m "Initial Directory Structure"

To do the same thing.

- Kevin

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-18 02:59:45 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.