Scott,
before you start working on a new repository you have to start with a basic
design of your folder structure.
Example, suppose you store only one project/product in your repository. In
that project, you will be working
on trunk, but you want to branch each time you plan to release a new
version.
In this example, you start from the empty repository, and create these
folders in that repository:
/trunk
/branches
/tags
svn checkout file:///subversroot/ .
svn mkdir trunk branches tags
svn commit . -m "Added initial folders"
You can now import your project code on the trunk:
svn import c:/tmp_project file:///subversroot/trunk -m "Initial import"
To start working on the code of your project, now stored in the /trunk
folder in the repository, you have to
checkout the trunk folder:
svn checkout file:///subversroot/trunk c:\dev
When after some time of development you're ready to create a branch to
prepare the release of version 1.0,
you copy a branch 1.0 from trunk at revision 123:
svn cp file:///subversroot/trunk file:///subversroot/branches/1.0 -m
"Created branch 1.0 from trunk@123"
This is only one example on how to structure the repository, since branches
are only folders in a repository
you're free to setup your repository in whatever way which suits you best.
hope this helps,
Lieven.
_____
From: Scott Purcell [mailto:spurcell@vertisinc.com]
Sent: donderdag 23 februari 2006 22:30
To: users@subversion.tigris.org
Subject: Doc clarification
Hello,
I am following the branching section and am a bit confused on the following
paragraph:
Creating a branch is very simple-you make a copy of the project in the
repository using the svn copy command. Subversion is not only able to copy
single files, but whole directories as well. In this case, you want to make
a copy of the /calc/trunk directory. Where should the new copy live?
Wherever you wish-it's a matter of project policy. Let's say that your team
has a policy of creating branches in the /calc/branches area of the
repository, and you want to name your branch my-calc-branch. You'll want to
create a new directory, /calc/branches/my-calc-branch, which begins its life
as a copy of /calc/trunk.
I have added to the repository a folder called /unique this morning
svn import C:/tmp_project file:///subversroot/unique -m "Initial Import"
Now when I read the branching stuff it states to make a copy of the project
in the repository using the svn copy command. Then a sentence later it says
make a copy of the /calc/trunk directory (which was in our local check
folder).
It would appear tht we want to create a copy in the repository, then check
that out . but I am not sure.
Thanks,
Scott
Received on Thu Feb 23 23:48:07 2006