[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: Andrew Close <aclose_at_gmail.com>
Date: 2007-02-14 18:03:17 CET

On 2/14/07, Ivan Aleman <bonovoxmofo@gmail.com> wrote:
> 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 ;)
>

Chris, Ivan, Jim - thank you for your responses.
i was pretty sure i was doing it correctly because i was getting what
i expected. but i wasn't sure if what i was doing was the most
efficient way. :)

thanks again,
andy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 14 18:04:44 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.