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

Re: Trunk, Branch and Tags

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-07-09 01:55:45 CEST

On Jul 8, 2007, at 10:09, [Sunshine Tech Solutions] Ravi Gehlot wrote:

> Hey nathan,
> I am totally comfortable with doing the command line. This is
> what I did:
> 1) mkdir /home/svnProjects/projectName/trunk
> 2) mkdir /home/svnProjects/projectName/branches
> 3) mkdir /home/svnProjects/projectName/tags
> 4) svnadmin create /home/svnProjects/projectName/trunk
> 5) svnadmin create /home/svnProjects/projectName/branches
> 6) svnadmin create /home/svnProjects/projectName/tags

Oh, goodness, no. trunk, branches and tags should merely be
directories inside your repository. They should not each be their own
repositories (which is what svnadmin create does -- it creates
repositories). That would completely defeat the purpose. The purpose
of branches and tags is that you copy to them from the trunk, but you
cannot copy between repositories. Do not use svnadmin create here at

> 7) svn commit -m "Initial Load Successful" /home/projectName/
> public_html file:///home/svnProjects/projectName/trunk

svn commit does not take a repository URL argument. svn import does...

> 8) rm -rf /home/projectName/public_html
> 9) cd /home/projectName/public_html
> 10) svn co file:///home/svnProjects/projectName/trunk
> 11) svn up (at Revision 01)
> The directory hierarchy is:
> home/
> svnProjects/
> projectName/
> trunk/
> src/
> branches/
> tags
> The URL svn://svn.mydomain/projectName/trunk works just as
> good. It is also password protected. TortoiseSVN and Eclipse read
> it just about good.
> As far as my understanding goes, there should be no change
> to the trunk directory. All changes should take effect on branches
> and then merged into trunk. My problem is how do I create my
> branches and tags repo?
> Also, I know that when the repos are well installed a little
> green arrow shows on Eclipse for trunk.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 9 01:56:42 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.