On Aug 28, 2008, at 21:52, svn_at_celticblues.com wrote:
> I have read the book and searched the mailing list archive, but I am
> still a bit unsure to do what I want to do....
>
> I have a project in svn. The project consists of around 5 sub
> projects, or applications, actually. I want to label all the sub
> projects in the repository as version 0.9. So I have something like
> this
>
> /trunk
> /trunk/Project
> /trunk/Project/
> /trunk/Project/SubProject1
> /trunk/Project/SubProject2
> /trunk/Project/SubProject3
> /trunk/Project/SubProject4
> /trunk/Project/SubProject5
>
> What I want to end up with, is the ability at anytime, to get a
> working copy of this version, which I am calling r0.9.0, and be able
> to rebuild it.
>
> What I think I want to do is tag the project and all its
> subprojects. Is that correct?
>
> So, I need to create a tag dir parallel to the trunk right?
>
> i.e.
>
> /trunk
> /tag
>
> I read something about doing and svn copy to the tag dir, or
> something... this is where I get somewhat confused...
>
> What do I need to do?
Let's assume your repository is located at svn://my.org/repo
So you've got svn://my.org/repo/trunk containing the current state of
your project which you're calling r0.9.0.
you'll need a place to keep your tags. conventionally, that's a "tags"
directory next to trunk, as you've already discovered:
$ svn mkdir svn://my.org/repo/tags -m "created empty tags directory"
you might as well make a place for branches, while you are at it:
$ svn mkdir svn://my.org/repo/branches -m "created empty branches
directory"
Now, all you need to do is make a copy of the current state of your
trunk to your tags directory to preserve the current content of the
trunk:
$ svn cp svn://my.org/repo/trunk svn://my.org/repo/tags/0.9.0 -m
"tagged 0.9.0"
At this point you can continue to work on trunk, without having any
effect on the contents of tags/0.9.0. If at any time in the future
you want to do a build of 0.9.0, or compare your trunk with 0.9.0 or
perhaps perform a bug fix on the basis of 0.9.0, you'll find it nicely
preserved for you in your tags directory.
hth
// Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-28 22:31:11 CEST