[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: H. S. Teoh <hsteoh_at_quickfur.ath.cx>
Date: 2004-09-24 00:48:09 CEST

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)

> The notion of being able to tag a subset (for example if I wanted to
> group some things into smaller components and track both
> component-level "tags" and system-level tags) is lost. SVN adds the
> extra convenience of automatically applying the tag to the whole
> tree (and saving a lot of time to do it:). For that convenience, I
> lose the ability to define the granularity of the repo I wanted to
> tag.

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

        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

(What I'd love to see, though, is an extension of svn copy to work
with multiple files, ala the Unix 'mv' command when the last argument
is a directory. Or is it already implemented and I just haven't read
the docs well enough? :-P)


This is not a sentence.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 24 00:51:24 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.