You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Steve Stanley <w3...@berkeley.edu> on 2008/06/17 21:56:11 UTC
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.
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
-------
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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: missing from svnbook: syntax for creating the TTB directories?
Posted by Kevin Grover <ke...@kevingrover.net>.
On Tue, Jun 17, 2008 at 2:56 PM, Steve Stanley <w3...@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://server/repo
http://server/repo
file://path/to/repo
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:
set r=REPOURL
svn mkdir %r%/trunk %r%/tags %r%/branches -m "Initial Directory Structure"
To do the same thing.
- Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: missing from svnbook: syntax for creating the TTB directories?
Posted by Lorenz <lo...@yahoo.com>.
Steve Stanley wrote:
>What is the syntax for creating the TTB directories that are
>mentioned several places in svnbook?
>[...]
besides the possibilites mentioned by others you can also create your
directory tree using the normal shell command.
Just build the whole directory structure - including files - then
finally 'svn import' the whole tree in a single revision.
That's mostly identic to the methode described by John, but you don't
need to use the subversion client to create and move around you
directories and files.
--
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: missing from svnbook: syntax for creating the TTB directories?
Posted by Matt imMute Sickler <im...@msk4.ath.cx>.
$ svnadmin create /path/to/repos
$ svn mkdir file:///path/to/repos/trunk
$ svn mkdir file:///path/to/repos/tags
$ svn mkdir file:///path/to/repos/branches
would be more correct but not quite there.
Steve Stanley 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
>
> -------
> 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@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: missing from svnbook: syntax for creating the TTB directories?
Posted by John Niven <jn...@bravurasolutions.com>.
> -----Original Message-----
> From: Steve Stanley [mailto:w3steve@berkeley.edu]
> Sent: Wednesday, 18 June 2008 09:56
> To: users@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@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org