[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: John Niven <jniven_at_bravurasolutions.com>
Date: Wed, 18 Jun 2008 12:10:51 +1200

> -----Original Message-----
> From: Steve Stanley [mailto:w3steve_at_berkeley.edu]
> Sent: Wednesday, 18 June 2008 09:56
> To: users_at_subversion.tigris.org
> Subject: missing from svnbook: syntax for creating the TTB
> directories?
>
>
> 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.

Correct, kind of (see later)

>
> I'm almost certain that one creates them using
>
> $ svnadmin create /path/to/repos

Correct..., but the TTB directories commands are incorrect...

> $ svnadmin create /path/to/repos/trunk
> $ svnadmin create /path/to/repos/tags
> $ svnadmin create /path/to/repos/branches
>

Incorrect.

Use "svn mkdir" for these, e.g.
svn mkdir http://servername/svn/repository/trunk -m "Creating trunk"
svn mkdir http://servername/svn/repository/tags -m "Creating tags"
svn mkdir http://servername/svn/repository/branches -m "Creating
branches"

Alternatively, after "svnadmin create" checkout the virgin repository to
a new working copy, use your shell to create the TTB directories, then
commit all in one commit:
svnadmin create /path/to/repos
mkdir WC
svn co http://servername/svn/repository WC
mkdir WC/trunk
mkdir WC/tags
mkdir WC/branches
svn ci WC -m "Cretaing TTB"

(FWIW, I prefer the 2nd method).

Also FWIW, I had a quick peek at the manual and tend to agree with you;
the command given is "svn ls" *after* the TTB directories have been
created. I think it would be more useful to show "svn mkdir" instead,
at least for the trunk directory (tags and branches is probably
overkill, and my preferred TTB creation method is possibly confusing at
that stage). Do you fancy making a suggestion to the manual'l list?!

Cheers
John

> 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
>
> -------
> Steve Stanley
> Web Developer/Programmer
> Technology Transfer Program
> Institute of Transportation Studies
> University of California Berkeley
> http://diaryofawebster.blogspot.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>

---------------------------------------------------------------------
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:11:23 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.