[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: Jim Thompson <jim.thompson_at_doit.wisc.edu>
Date: 2007-02-14 17:29:53 CET

Andrew Close wrote:

> 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. :)
>
I'm a total rookie with SVN, so this is just my current best guess...

It probably depends on how you plan to use Subversion and how that might
fit with your process for promoting/releasing code.

We will likely have lots of portlet apps within our repo - and we expect
that developers will be working on different portlets at different
times, most of which will have independent release schedules. So I'm
guessing our repo will look something like this:

- portlets
- portlets/portlet1
- portlets/portlet1/trunk
- portlets/portlet1/branches
- portlets/portlet1/tags
- portlets/portlet2
- portlets/portlet2/trunk
- portlets/portlet2/branches
- portlets/portlet2/tags

Guess I'd generalize that by saying we may use trunk/tags/branches under
each module.

> 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?
> 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:
> '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.
>
> 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.
>
> thanks again
> andy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
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:30:26 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.