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

Re: Beginner question on trunks, branches and tags

From: Kevin Grover <kogrover_at_yahoo.com>
Date: 2006-03-20 08:08:42 CET

In case the list replies were not enough. The trunk/tags/branches are just a convention, but a good one. The recommend course

create the SVN repo

$ svnadmin create /u6/repos/svn/myrep

NOTE: I use the extra 'svn' directory because I also have some legacy cvs repositories that have not yet be converted to svn.

make the directory structure

R=file:///u6/repos/svn/myrep
svn mkdir -m "Initial Folder Layout" $R/trunk $R/tags $R/branches

If you're using Windows
set R=file://c:/repos/svn/myrep
svn mkdir -m "Initial Folder Layout" %R%/trunk %R%/tags %R%/branches

THEN, import your direcrories into trunk and use that for normal development. You may end up with many repositories with empty tags and branches, but so-what. It doesn't cost much and anyone else browsing your repos will be able to figure out how things are laid out.

# from dir with the code to be placed in myrep
svn import -m "Code Import" $R/trunk .

Then,

mv myrep myrep.orig
svn co $R/trunk myrep

Now, work in 'myrep' directory (which is svn managed)

Hope this helps.

----- Original Message ----
From: Jeff Brewer <jeff@3brewers.org>
To: users@tortoisesvn.tigris.org
Sent: Sunday, March 19, 2006 9:15:05 AM
Subject: Beginner question on trunks, branches and tags

      I'm trying to configure my Tortoise installation to begin using it with on of my web projects. I've installed tortoise and have tried creating repositories and it "seems" to be working more or less.
  
 I'm now ready to set up a repository to hold one of my web projects but I don't understand the trunks/branches/tags directory structure that I'm supposed to create in the repository.
  
 I've got an existing directory structure for my (very simple) web project which is a directory containing all of my html pages and a single sub-directory containing image files.
  
 In reading through the manual I'm confused about whether I should create a new directory structure that consists of three directories (trunks, branches and tags). Do I move my web directory into one or more of these directories? Am I supposed to maintain a production copy of the website in one of the directories (e.g. the trunk?) and put other development copies of the website under the branches and/or tags directory?
  
 I've read the manual through a couple of times but get the feeling I'm missing a chapter or something.
  
 If you're not rolling on the floor laughing TOO hard would you suggest something to nudge me in the right direction?
  
 Thanks,
 Jeff
Received on Mon Mar 20 08:08:58 2006

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