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

Re: n00b: branches, tags, trunk...

From: Ivan Aleman <bonovoxmofo_at_gmail.com>
Date: 2007-02-14 17:29:20 CET

2007/2/14, Andrew Close <aclose@gmail.com>:
> please correct me if i'm wrong, but 'Best Practices' seem to indicate
> that at the top level of your repository you should have directories
> labeled 'branches', 'tags', 'trunk', that contain your branches, tags
> and trunk. :)

Hello Andrew,

I better call them main-branches there's maybe a better name :) :

 * trunk
 * tags
 * branches

>
> a question i have regarding this setup is when i specify my repository
> URL for a checkout, do i always have to list either 'branches',
> 'tags', or 'trunk' as part of the URL?

Yes, and based on your question my guess is that you're doing
something differently and that's why you get this issues, keep
reading.

> for example, my repository is called 'My_Project'. in the root of my
> project i have the three recommended directories. and since this is a
> new repository i've only populated the 'trunk' with my project files.
> so now a developer wants to perform a checkout to populate their local
> workspace. for the URL to the repository they would enter:
> 'svn://reposMachine/My_Project/trunk'. if the developer wanted to
> check out a specific branch, assuming there were branches to check out
> from, they would enter:

When you're setting up your repository you create trunk, branches and
tags with command like these:

svn mkdir http://repomachine/myrepo/trunk
svn mkdir http://repomachine/myrepo/branches
svn mkdir http://repomachine/myrepo/tags

Thus if a developer or you want to star a fresh working copy you must
checkout to that specific URL in the case above will be (for trunk)

svn co http://repomachine/myrepo/trunk <any_dir_name>

> 'svn://reposMachine/My_Project/branch/branchName' as their URL.
> is this correct? or is there a way around having to enter 'branch',
> 'tags', 'trunk' in the URL?
> when i've tried just entering: 'svn://reposMachine/My_Project' as the
> URL i end up getting all branches, tags and the trunk in my local
> workspace.
>

To get the three main-branches you do this:

svn co http://repomachine/myrepo <any_dir_name>

But I don't know why you need to do this, just for testing I hope ;)

> thanks for any comments, corrections, etc. :)
>
> oh, are there any docs that list out 'Best Practices' aside from the
> SVN Book? i've been trying to read through the docs listed on the
> site just to get up to speed.
>

The book is all you need, it's pretty straight forward and for the
best practices use the common sense and search on google, groups, mail
list or ask if you don't find the answers that fit in your scenario.
Good luck!

-- 
Iván Alemán -- bonovoxmofo.blogspot.com
Cambia ya!
http://goodbye-microsoft.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 14 17:29:47 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.