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

Re: I need your help with "labeling" scenario

From: Manuzhai <mail_at_manuzhai.nl>
Date: 2005-04-15 11:13:36 CEST

> now what I should support is to check out specific configuration:
> a\ at 580 revision
> b\ - newest one
> c\ - 320
> d\ - newest one
> Only because I know these revision were good, and work properly, and
> the new one could work but are tested jet. I could do it at user side
> by script work. OR what I would like to do is to obtain something like
> LABEL, over this set of exact revision.
> What should I do ? make a branch for this set of files ? Or there is
> labeling support at SVN, and I miss it?

Well, there is a way of doing what you want. First, you should have your
repository setup the way it is recommended: with /tags, /branches and
/trunk. Assuming your stuff is in trunk, you can get what you want by
doing the following:

$ svn mkdir svn://host/repos/tags/my-tag
$ svn cp -r580 svn://host/repos/trunk/a svn://host/repos/tags/my-tag/a
$ svn cp svn://host/repos/trunk/b svn://host/repos/tags/my-tag/b
$ svn cp -r320 svn://host/repos/trunk/c svn://host/repos/tags/my-tag/c
$ svn cp svn://host/repos/trunk/d svn://host/repos/tags/my-tag/d

You see, in Subversion we don't have LABELs or TAGs in another
dimension, but we use a directory as a means of labeling a bunch of
files. Because copies are cheap (e.g., the tag will just be stored as
references to the actual versions of the files), this doesn't take a lot
of storage.



To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 15 11:14:10 2005

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.