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

Re: I, too, miss tags.

From: Saulius Grazulis <grazulis_at_ibt.lt>
Date: 2006-02-26 04:26:42 CET

On Sunday 26 February 2006 13:28, Duncan Murdoch wrote:

> I think what is being asked for is a repository-wide property.  Why not
> record all these tags in a file, and commit it to the root of the
> repository?  

This would be an option (say in a file .svn-labels), but this is equivalent to
having a property svn:labels on a root dir. In fact, we already have such
file, it is called .svn/dir-props :).

Drawback of the .svn-labels approach: one more "special" file in a working
copy.

Drawback of the svn:labels property -- possible clash of names (possible also
when using .svn-labels file).

> Why (only) attach them to the revision?

It does not matter of all labels are listed in that property.

We can pick any property, both versioned or unversioned, for storing labels.

Advantage of the versioned property is:

a) it is versioned -- one can easily see when tha label was introduced, by
whom.

b) if a label is errorneously deleted, it can be always restored from the
older revisions.

c) such properties are supported by all clients right now -- all clients would
correctly retrieve labels to working copies, even if they are
"label-unaware".

AFAIK, svn client can not change per-revision (unversioned) properties. Is
that right? Otherwice one could store labels in an unversioned property, like
"svn:log".

This seems very simple to implement (with a versioned property).

-- 
Dr. Saulius Grazulis
Institute of Biotechnology
Graiciuno 8
LT-02241 Vilnius
Lietuva (Lithuania)
fax:          (+370-5)-2602116
tel.: office: (+370-5)-2602556
      mobile: (+370-684)-49802, (+370-614)-36366

  • application/pgp-signature attachment: stored
Received on Sun Feb 26 13:30:17 2006

This is an archived mail posted to the Subversion Users mailing list.