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

Re: I miss tags

From: Brad Appleton <brad_at_bradapp.net>
Date: 2004-09-24 16:55:37 CEST

On Thu, Sep 23, 2004 at 03:48:09PM -0700, H. S. Teoh wrote:
> On Thu, Sep 23, 2004 at 05:30:35PM -0500, Brad Appleton wrote:
> [...]
> > I think there is an important difference here. SVN assumes
> > that the granularity of what I want to "tag" is always all
> > the files in the repo (or at least in the branch).
>
> Um, this is not true... (see below)

Perhaps I misphrased what I intended to express.

> No you don't. Here's how you can tag 3 individual files in a working
> directory (and not anything else that may happen to be in there at the
> time):
>
> svn copy file1 svn://repos/url/tags/1.0/file1
> svn copy file2 svn://repos/url/tags/1.0/file2
> svn copy file3 svn://repos/url/tags/1.0/file3
>
> Bingo, now when you check out tags/1.0, you get precisely file1,
> file2, and file3, and nothing else. They don't even have to be the
> same revision if you check out different versions in your working
> directory.

Perhaps what I really mean to say is that the above still
treats the tag as if its purpose in life was to represent a
"copy" of those three versions of those three files. SVN
doesn't let me create a "tag" that doesn't correspond to a
"copy". From an "attribute" perspective, just because I may
"tag" some subset of things doesn't mean I always want it
to correspond to a "copy" - I amy just want it as an attribute,
and I can "query" it when I want (or ask for a corresponding
"copy" to be made at some later time), but I don't want to populate
a directory tree for every such attribute I can make use of.

A similar idea would be allowing a symbolically-named "alias"
for a global revision number. It would just be a mapping
(without creating a copy for each one -- however cheap it may be)
that would "macro-expand" into the corresponding revnum.

The attribute is just a more general notion. In CVS, tags
were more like attributes. In SVN, tags are more like
baselines. And while it may be possible to apply them at
"attribute" granularity, its still trying to be a "copy"
and not simply an attribute or association.

-- 
Brad Appleton <brad@bradapp.net> www.bradapp.net
  Software CM Patterns (www.scmpatterns.com)
   Effective Teamwork, Practical Integration
"And miles to go before I sleep." -- Robert Frost
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 24 16:56:03 2004

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.