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

Re: svn question

From: Kevin Grover <kevin_at_kevingrover.net>
Date: Fri, 9 May 2008 17:59:42 -0700

A 'check out' is a working copy. No change is made to the repository
(until you commit).

A tag is a repository side thing. It is an 'svn copy' of some folder
(usually trunk) into the tags directory, under a meaningful name (the

For example:
svn copy svn://server/repo/trunk svn://server/repo/tags/Release_1_0 -m
"Tag for release 1.0"

Would copy the current trunk into tags/Release_1_0. NOTE: this is the
'trunk' IN the repository (at the time the svn copy command is run)..
It has nothing to do with any checked-out working copy.

You can also create tags of local working copies but that is less
useful. You should read the svn book about tags and branches.

The key to keep in mind is that in Subversion, tags and branches are
just copies. The use of 'tags' and 'branches' are convention:
Subversion does not enforce them. You could call the 'tags' and
'branches' directories anything you want 'foo' and 'bar' for example,
and everything works the same. Note: some clients (TortoiseSVN for
example) prevent commits to existing 'tags', because, by convention,
tags are read-only.

A sub-concept to keep in mind is that copies in Subversion are 'cheap'
-- there's very little overhead for them (speed or space): creating
an 'svn copy' of a branch requires a few bytes, regardless of the size
of the data in the branch.

On Fri, May 9, 2008 at 12:56 PM, Randy Lam
<Randy.Lam_at_wellpointsystems.com> wrote:
> I did a checkout to create a tag but should have done a svn copy allowing me
> to add a message so that Tortoise would pick it up. Is there any easy way
> to add this message to the tag? If this is the wrong forum, I apologize for
> posting a question here so please direct me to the correct place as I
> inherited this position from the SCM admin that left.
> Thanks
> Randy

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-10 03:00:42 CEST

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.