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

Re: Importing into subversion

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-02-14 22:13:08 CET

On Feb 14, 2007, at 13:08, pingu wrote:

> Hi, i have read a lot online, and am confused as to how you import
> a project
> into your repository.
>
> This page http://www.germane-software.com/~ser/R_n_R/
> subversion.html here
> says that you should create the dir structure (trunk, tags,
> branches) before
> you import your project.
>
> Whereas this page
> http://www.macdevcenter.com/pub/a/mac/2004/08/10/subversion.html?
> page=2 here
> suggests you import your project as is, but append /trunk to the
> import line
> e.g
>
> svn import -m "Importing project widget" \
> ~/MyWorkArea/ProjectWidget \
> http://localhost:8008/svn/ProjectWidget/trunk
>
> Which is correct? are they any different?

Do it whatever way you like. Subversion is a versioned file system.
Create directories and files in it any way you like.

Creating the trunk, branches, tags directories locally and importing
them all at once is useful because you can use a commit message like
"setting up initial directory structure" and get it all in a single
revision, which makes sense because it is logically a single task.

On the other hand, you could import just the trunk, as your second
link advocates. Then, when you later want to create a branch or a
tag, you'll first have to create the branches and/or tags
directories. Which would be fine too. Whatever you like.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 14 22:14:02 2007

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.