You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by John Calcote <jc...@novell.com> on 2006/03/18 18:24:00 UTC

Tags and branches are NOT the same

Okay, I've done the research, and I'm back to talk about this issue
intelligently now. Thanks to Greg and others for setting me strait on
mailing list etiquette.
 
One thing that strikes me from the email archives that I've read is
that several people have independently discovered the same issue with
subversion with respect to tags * tags are fundamentally NOT branches.
They are bookmarks, plain and simple. This comes not from the way CVS
defines a tag, but rather from the base concept of a tag, and the way
it's used. 
 
What's even more interesting is that several people have independently
presented the same solution. But no one on the subversion design team
seems to be able to see the logic in these presentations. They seem to
be so focused on the tags-as-branches philosophy, that they can't see
the problems with this approach. They continually taut the strengths of
the approach, while discounting the problems as irrelevant. 
 
Frankly, my perspective on it is that it's a missing feature with a
canonized work-around.
 
I too have a work-around for this missing feature: In my projects, I
keep a file at the root of the trunk called TAGS. The format of this
text file is very simple. Each line contains a revision number followed
by a unique TAG name. When I want to switch to a particular tag, I cat
this file to the console, note the revision number associated with the
tag name, and then type "svn update -rxx" where xx is the noted revision
number.
 
There are even unixy little ways of "automating" this process:
 
    svn update -r`grep TAG1 TAGS | sed -e 's/TAG1//'`
 
I'd hate to have to type this every time I want to switch tags, and it
won't work on Windows, so it sucks that we can't just have what we want
from the SVN team, but such is life.
 
Hope this is useful...
 
John 

Re: Tags and branches are NOT the same

Posted by Phillip Susi <ps...@cfl.rr.com>.
John Calcote wrote:
> Frankly, my perspective on it is that it's a missing feature with a 
> canonized work-around.
>  



My perspective is that tags in CVS are a canonized work-around to the 
fact that CVS only versions individual files.  In CVS a tag is the ONLY 
way to specify a given revision of the entire project tree ( or a subset 
thereof ).  The tag in CVS associates a name not with a single revision 
number but a revision number on every file that is tagged, thus they 
name both a state in time and a set of files.


In subversion tags are not required because the entire repository is 
versioned as one, so you only have to specify a path and one revision 
number to get the entire state of a project at a given point in time. 
If you would rather remember a name than a number, then immutable 
branches as tags works fine for that purpose.


Simply adding a name to revision translation table is not sufficient to 
implement CVS like tags; they also have to keep track of what subset of 
files and directories the tag applies to since you can tag only a subset 
of the repository.  That is not trivial work, and wouldn't really add 
any value, so nobody is interested in doing it.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Danny van Heumen <da...@hccnet.nl>.
Vincent Starre wrote:
> Still afraid of this issue due to the hugge thread is spawned last time,
> but I _still_ feel it was unresolved last time. Each of my posts asking
> for a breakdown of "what is currently difficult in the current system"
> and "proposals for how to extend the current system" went ignored. I
> would still love to see that, because I really do think there are some
> use-cases which could be helped out.

I second that.
I would really like to see all the facts gathered too. (And because this
discussion has been raised many times, I think a lot of people would
want it to.)
I didn't respond until now because I'm currently too busy to add
anything useful, but now I can :P

My view on this case is that there are several different concepts/views
on tags and how to implement them.
With that, people start to complain about each other's approaches and
how it doesn't help with their problems/tasks.

So I think we have to agree about some things first:

1. What is the view of the programmers on tags and how to implement
them? (This allows all the readers to check and correct their view on
SVN-tags.) --> This is because I think that some people don't see the
full extent of the SVN way of implementing tags (or maybe I just don't
see the full extent of CVS tags :P)

2. What different kind of situations do we have for using tags and how
should one implement them with SVN-tags.
And what lacks in current approaches.
(This *will* produce (a lot) of discussion, so be careful :P. Every
situation in it's own sub-thread ofcourse, we want to keep a structured
discussion and keep everything together).

3. Proposals for how to extend the current system.
By using the discoveries of 2 we can think of some solutions (and
there's probably more than one way to solve these lackings) and think
them out.

And last but not least: I think there should be someone who keeps an eye
on things. We don't want discussion about one approach against another.
We just want to create a clear view of what is, what isn't and what can
become. (This will inevitably become a big thread)

@Vincent: It's still your idea. I just wanted to deepen things out a bit :P

Danny

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Vincent Starre <vs...@comcast.net>.
Still afraid of this issue due to the hugge thread is spawned last time, 
but I _still_ feel it was unresolved last time. Each of my posts asking 
for a breakdown of "what is currently difficult in the current system" 
and "proposals for how to extend the current system" went ignored. I 
would still love to see that, because I really do think there are some 
use-cases which could be helped out.

This is just a ++ for further /intelligent/ discussion on the thread. 
(and may noone ever mention named numbers within it ;)

Julian Foad wrote:

> John Calcote wrote:
>
>> On 2006-03-18 at 14:34:32 Julian Foad wrote:
>>  >
>>  > Unfortunately not, because you have fallen into the same trap as 
>> so many other
>>  > correspondents, and that is to approach the subject with the 
>> assumption that it
>>  > is conceptually simple, having an obvious Right Answer.  The 
>> "solution" you
>>  > mention here is that a "tag" should be an alias name for a 
>> revision number.  
>> I don't know Julian, it seems conceptually simple to me, according to 
>> the CVS manual [...], tags seem to be
>> just symbolic names for revision numbers. Section 4.4 is entitled, 
>> "Tags - Symbolic Revisions", which seems to convey the very simple 
>> three-word definition that I used in my original note, which you 
>> strongly state is not the case.
>
>
> That's the case for CVS.  Subversion is not CVS.  One particularly 
> pertinent difference is that a CVS revision number is per file, 
> whereas in Subversion a revision number is across the whole 
> repository.  This difference has more than trivial implications.
>
>
> [...]
>
>>  > You don't even acknowledge in this mail that there are other possible
>>  > definitions, such as a tag marking only a subset of the files and
>>  > directories in the repository, which is something that CVS tags 
>> can do.
>>  
>> I'm sorry if I wasn't clear on this point in my original message. I'm 
>> not really interested in possible new interpretations of the concept 
>> of tagging. Granted there is probably value in doing a use-case study 
>> as you suggest, but my original point was that existing CVS users 
>> expect tags to act as symbolic names for specific revisions of file 
>> sets.
>
>
> Ah, I see.  (That was't clear before, as you didn't mention CVS except 
> in the negative.  Apology accepted.)
>
> In contrast, the Subversion team is not really interested in just 
> implementing something that is as close as possible to the CVS concept 
> of tagging without thinking about whether that is the best concept for 
> Subversion, nor in providing Subversion with two different ways of 
> tagging without very good reason.  There may be good reasons for 
> supplementing or changing Subversion's tagging abilities, but they 
> have not been adequately studied and justified.
>
>
> [...]
>
>> In fact, I didn't provide a complete user experience in my examples. 
>> This surely needs to be done, but it's likely not that hard.
>
>
> I love it when people say that.  :-)  Actually, you're probably right 
> in that collecting a fairly comprehensive set of use cases should 
> require only a few hours of one person's time plus maybe a fortnight 
> or so of collecting examples from other people.  Indeed, I'm pretty 
> sure a partial collection exists in the mailing list archive as part 
> of a previous discussion.  Analysing those use cases and arguing about 
> whether they should be supported directly or whether the user should 
> be taught a new way to achieve the same goal is likely to take longer.
>
>
>>  > I know I'm being harsh on you, but this is the way your message comes
>>  > across after having seen many others like it.  Bear with me a minute.
>> I don't mind you being harsh - I only mind being ignored, because 
>> then no intelligent exchange of ideas can happen. :)
>
>
> OK.  I'm sorry that all I can offer at the moment is an invitation for 
> you or someone else to study the requirements, arguments and proposals 
> that have been made so far and present them in a coherent form to 
> enable further progress.
>
> - Julian


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Julian Foad <ju...@btopenworld.com>.
John Calcote wrote:
> On 2006-03-18 at 14:34:32 Julian Foad wrote:
>  >
>  > Unfortunately not, because you have fallen into the same trap as so many other
>  > correspondents, and that is to approach the subject with the assumption that it
>  > is conceptually simple, having an obvious Right Answer.  The "solution" you
>  > mention here is that a "tag" should be an alias name for a revision number. 
>  
> I don't know Julian, it seems conceptually simple to me, according to 
> the CVS manual [...], tags seem to be
> just symbolic names for revision numbers. Section 4.4 is entitled, "Tags 
> - Symbolic Revisions", which seems to convey the very simple three-word 
> definition that I used in my original note, which you strongly state is 
> not the case.

That's the case for CVS.  Subversion is not CVS.  One particularly pertinent 
difference is that a CVS revision number is per file, whereas in Subversion a 
revision number is across the whole repository.  This difference has more than 
trivial implications.


[...]
>  > You don't even acknowledge in this mail that there are other possible
>  > definitions, such as a tag marking only a subset of the files and
>  > directories in the repository, which is something that CVS tags can do.
>  
> I'm sorry if I wasn't clear on this point in my original message. I'm 
> not really interested in possible new interpretations of the concept of 
> tagging. Granted there is probably value in doing a use-case study as 
> you suggest, but my original point was that existing CVS users expect 
> tags to act as symbolic names for specific revisions of file sets.

Ah, I see.  (That was't clear before, as you didn't mention CVS except in the 
negative.  Apology accepted.)

In contrast, the Subversion team is not really interested in just implementing 
something that is as close as possible to the CVS concept of tagging without 
thinking about whether that is the best concept for Subversion, nor in 
providing Subversion with two different ways of tagging without very good 
reason.  There may be good reasons for supplementing or changing Subversion's 
tagging abilities, but they have not been adequately studied and justified.


[...]
> In fact, I didn't provide a complete user 
> experience in my examples. This surely needs to be done, but it's likely 
> not that hard.

I love it when people say that.  :-)  Actually, you're probably right in that 
collecting a fairly comprehensive set of use cases should require only a few 
hours of one person's time plus maybe a fortnight or so of collecting examples 
from other people.  Indeed, I'm pretty sure a partial collection exists in the 
mailing list archive as part of a previous discussion.  Analysing those use 
cases and arguing about whether they should be supported directly or whether 
the user should be taught a new way to achieve the same goal is likely to take 
longer.


>  > I know I'm being harsh on you, but this is the way your message comes
>  > across after having seen many others like it.  Bear with me a minute.
> I don't mind you being harsh - I only mind being ignored, because then 
> no intelligent exchange of ideas can happen. :)

OK.  I'm sorry that all I can offer at the moment is an invitation for you or 
someone else to study the requirements, arguments and proposals that have been 
made so far and present them in a coherent form to enable further progress.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Miha Vitorovic <mv...@nil.si>.
"John Calcote" <jc...@novell.com> wrote on 19.03.2006 01:32:01:

> 
> I don't know Julian, it seems conceptually simple to me, according 
> to the CVS manual (I'm looking at 
http://ximbiot.com/cvs/manual/cvs-1.12.13
> , which is the manual referenced by the gnu.org website for the CVS 
> project), tags seem to be just symbolic names for revision numbers. 
> Section 4.4 is entitled, "Tags - Symbolic Revisions", which seems to
> convey the very simple three-word definition that I used in my 
> original note, which you strongly state is not the case. 

As a simple dev-list observer I'd just like to point out, that what I 
conceptually like about Subversion project is, that each new feature is 
well thought over, carefully designed and well discussed among developers, 
and not a collection of hacks simply thrown together to scratch the 
currently biggest itch on the users list (there is a name for that, but I 
cannot think of it right now).

I said conceptually, because practically there are some features that 
everyone agrees need to be added, but their realization is somewhere in 
the undetermined future, until some takes on their implementation and 
drives forward the discussion. And that, to users and me too, is sometimes 
quite frustrating.

In light of that you will probably have to accept, that Subversion will 
not have what you want, until someone analyses the problem, presents all 
possible use-cases, proposes best solution that would encompass all/most 
of them in a developer-sane way, and then draws the interest of the right 
developers to implement that (or do that himself).

Cheers,
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: Tags and branches are NOT the same

Posted by John Calcote <jc...@novell.com>.
On 2006-03-18 at 14:34:32 Julian Foad julianfoad@btopenworld.com wrote: 
 
> John Calcote wrote:
> > Okay, I've done the research, and I'm back to talk about this issue 
> > intelligently now.
> [...]
> 
> Unfortunately not, because you have fallen into the same trap as so many other 
> correspondents, and that is to approach the subject with the assumption that it 
> is conceptually simple, having an obvious Right Answer.  The "solution" you 
> mention here is that a "tag" should be an alias name for a revision number. 
 
I don't know Julian, it seems conceptually simple to me, according to the CVS manual (I'm looking at http://ximbiot.com/cvs/manual/cvs-1.12.13, which is the manual referenced by the gnu.org website for the CVS project), tags seem to be just symbolic names for revision numbers. Section 4.4 is entitled, "Tags - Symbolic Revisions", which seems to convey the very simple three-word definition that I used in my original note, which you strongly state is not the case. 
 
This section also mentions that you can use the "cvs tag -v filename" command to see which tags are associated with a file. In the CVS paradigm, where each modified file's revision is updated with each commit, this makes complete sense. But the essence of the section is that tags are simply names for sets of revision numbers. Since revisions in Subversion belong to the project and not to individual files, it is clear that a file would not have a set of tags associated with it. Rather, a (corresponding) tag system for SVN would have tags associated with projects, not files. This is a natural parallel to the decision made by SVN designers to revision the project instead of individual files and in fact, is probably a better design for CVS-like tags anyway for the same reasons that the SVN designers chose to revision projects instead of files.
 
> You don't even acknowledge in this mail that there are other possible 
> definitions, such as a tag marking only a subset of the files and directories 
> in the repository, which is something that CVS tags can do.  You appear to
 
I'm sorry if I wasn't clear on this point in my original message. I'm not really interested in possible new interpretations of the concept of tagging. Granted there is probably value in doing a use-case study as you suggest, but my original point was that existing CVS users expect tags to act as symbolic names for specific revisions of file sets. Tags in CVS act (conceptually) as lists of files with associated revisions. When a user associates a tag with a work area, she's really just book-marking her work area with a symbolic name. Now, a problem can occur here in that the user may have specifically set a subset of the files in that work area to specific revisions not related to the original work area (or the other files around it, for that matter). A CVS tag set on this work area would have no bearing on reality in this case, as requesting an update from that tag would retrieve a mish-mash of files with no relationship to one another other than the whim of the user at the time the tag was set. Luckily, SVN versions projects, not files, so this sort of thing can't really happen. It's interesting to note that here again - the original reasons for versioning projects instead of files serves SVN's corresponding implementation of tags as symbolic revisions in the same manner - the same benefits are reaped.
 
Interestingly, Section 4.8 ("Tagging and Adding and Removing Files") of the CVS manual indicates that tags are only associated with the files in a work area or project at the time the tag is assigned, which means that new files added later are not associated with the tag, and files already deleted are not associated with the tag. It also has the interesting side effect of tagging only files in the directory that the user did not delete from her work area. This text in the manual means that the original intent of tags was to tag a cross-section of the repository - all files in the project at the time the tag was added. Subsets occur naturally as a direct result of adding and deleting files earlier or later in history of the project relative to the tag, and unnaturally as a result of work-area corruption (unintentional or otherwise). Now, that said, you CAN remove a tag from subset of files, but listen to the language of Section 4.7 ("Deleting, Moving, and Renaming Tags").
 
...
 
"Normally one does not modify tags. They exist in order to record the history of the repository and so deleting them or changing their meaning would, generally, not be what you want. However, there might be cases in which one uses a tag temporarily or accidentally puts one in the wrong place. Therefore, one might delete, move, or rename a tag." 
 
...
 
I realize that many people probably mis-use this feature according to the original designers' intent. Nonetheless, I see nothing wrong with implementing subversion tags such that they are versioned and modifiable, making this functionality a feature, rather than an accident. In fact, using my TAG file hack, tags are versioned by virtue of the file existing in the repository (ironically).
 
> ...assume that anyone in their right mind will agree that your three-word 
> definition is the Right Answer and all the unspecified details such as whether 
> tags are versioned need not be mentioned yet and will work themselves out at 
> the implementation stage.
 
I didn't intend for my message to provide a pseudo-code patch to the subversion code base. In fact, I didn't provide a complete user experience in my examples. This surely needs to be done, but it's likely not that hard.
 
> I know I'm being harsh on you, but this is the way your message comes across 
> after having seen many others like it.  Bear with me a minute.
I don't mind you being harsh - I only mind being ignored, because then no intelligent exchange of ideas can happen. :)
 
John

 


Re: Tags and branches are NOT the same

Posted by John Calcote <jc...@novell.com>.
On 2006-03-18 at 14:34:32 Julian Foad <julianfoad@btopenworld.c
 
-----
John Calcote (jcalcote@novell.com)
Sr. Software Engineeer
Novell, Inc.
om> wrote: 
 
> John Calcote wrote:
> > Okay, I've done the research, and I'm back to talk about this issue

> > intelligently now.
> [...]
> 
> Unfortunately not, because you have fallen into the same trap as so
many other 
> correspondents, and that is to approach the subject with the
assumption that it 
> is conceptually simple, having an obvious Right Answer.  The
"solution" you 
> mention here is that a "tag" should be an alias name for a revision
number. 
 
I don't know Julian, it seems conceptually simple to me, according to
the CVS manual (I'm looking at
http://ximbiot.com/cvs/manual/cvs-1.12.13, which is the manual
referenced by the gnu.org website for the CVS project), tags seem to be
just symbolic names for revision numbers. Section 4.4 is entitled, "Tags
* Symbolic Revisions", which seems to convey the very simple three-word
definition that I used in my original note, which you strongly state is
not the case. 
 
This section also mentions that you can use the "cvs tag -v filename"
command to see which tags are associated with a file. In the CVS
paradigm, where each modified file's revision is updated with each
commit, this makes complete sense. But the essence of the section is
that tags are simply names for sets of revision numbers. Since revisions
in Subversion belong to the project and not to individual files, it is
clear that a file would not have a set of tags associated with it.
Rather, a (corresponding) tag system for SVN would have tags associated
with projects, not files. This is a natural parallel to the decision
made by SVN designers to revision the project instead of individual
files and in fact, is probably a better design for CVS-like tags anyway
for the same reasons that the SVN designers chose to revision projects
instead of files.
 
> You don't even acknowledge in this mail that there are other possible

> definitions, such as a tag marking only a subset of the files and
directories 
> in the repository, which is something that CVS tags can do.  You
appear to
 
I'm sorry if I wasn't clear on this point in my original message. I'm
not really interested in possible new interpretations of the concept of
tagging. Granted there is probably value in doing a use-case study as
you suggest, but my original point was that existing CVS users expect
tags to act as symbolic names for specific revisions of file sets. Tags
in CVS act (conceptually) as lists of files with associated revisions.
When a user associates a tag with a work area, she's really just
book-marking her work area with a symbolic name. Now, a problem can
occur here in that the user may have specifically set a subset of the
files in that work area to specific revisions not related to the
original work area (or the other files around it, for that matter). A
CVS tag set on this work area would have no bearing on reality in this
case, as requesting an update from that tag would retrieve a mish-mash
of files with no relationship to one another other than the whim of the
user at the time the tag was set. Luckily, SVN versions projects, not
files, so this sort of thing can't really happen. It's interesting to
note that here again - the original reasons for versioning projects
instead of files serves SVN's corresponding implementation of tags as
symbolic revisions in the same manner - the same benefits are reaped.
 
Interestingly, Section 4.8 ("Tagging and Adding and Removing Files") of
the CVS manual indicates that tags are only associated with the files in
a work area or project at the time the tag is assigned, which means that
new files added later are not associated with the tag, and files already
deleted are not associated with the tag. It also has the interesting
side effect of tagging only files in the directory that the user did not
delete from her work area. This text in the manual means that the
original intent of tags was to tag a cross-section of the repository -
all files in the project at the time the tag was added. Subsets occur
naturally as a direct result of adding and deleting files earlier or
later in history of the project relative to the tag, and unnaturally as
a result of work-area corruption (unintentional or otherwise). Now, that
said, you CAN remove a tag from subset of files, but listen to the
language of Section 4.7 ("Deleting, Moving, and Renaming Tags").
 
...
 
"Normally one does not modify tags. They exist in order to record the
history of the repository and so deleting them or changing their meaning
would, generally, not be what you want. However, there might be cases in
which one uses a tag temporarily or accidentally puts one in the wrong
place. Therefore, one might delete, move, or rename a tag." 
 
...
 
I realize that many people probably mis-use this feature according to
the original designers' intent. Nonetheless, I see nothing wrong with
implementing subversion tags such that they are versioned and
modifiable, making this functionality a feature, rather than an
accident. In fact, using my TAG file hack, tags are versioned by virtue
of the file existing in the repository (ironically).
 
> ...assume that anyone in their right mind will agree that your
three-word 
> definition is the Right Answer and all the unspecified details such
as whether 
> tags are versioned need not be mentioned yet and will work themselves
out at 
> the implementation stage.
 
I didn't intend for my message to provide a pseudo-code patch to the
subversion code base. In fact, I didn't provide a complete user
experience in my examples. This surely needs to be done, but it's likely
not that hard.
 
> I know I'm being harsh on you, but this is the way your message comes
across 
> after having seen many others like it.  Bear with me a minute.
I don't mind you being harsh - I only mind being ignored, because then
no intelligent exchange of ideas can happen. :)
 
John

 

Re: Tags and branches are NOT the same

Posted by Julian Foad <ju...@btopenworld.com>.
John Calcote wrote:
> Okay, I've done the research, and I'm back to talk about this issue 
> intelligently now.
[...]

> Hope this is useful...

Unfortunately not, because you have fallen into the same trap as so many other 
correspondents, and that is to approach the subject with the assumption that it 
is conceptually simple, having an obvious Right Answer.  The "solution" you 
mention here is that a "tag" should be an alias name for a revision number. 
You don't even acknowledge in this mail that there are other possible 
definitions, such as a tag marking only a subset of the files and directories 
in the repository, which is something that CVS tags can do.  You appear to 
assume that anyone in their right mind will agree that your three-word 
definition is the Right Answer and all the unspecified details such as whether 
tags are versioned need not be mentioned yet and will work themselves out at 
the implementation stage.

I know I'm being harsh on you, but this is the way your message comes across 
after having seen many others like it.  Bear with me a minute.

I could be more helpful to you by pointing out exactly why certain other 
definitions of "tags" would be be preferable in certain ways, and how some 
high-level designs fit better with the existing architecture and features of 
Subversion than others do, but I'm sorry to say I've done that to some extent 
in past discussions (but far from a complete analysis) and haven't got the 
energy to re-start it right now.

The most productive stage I can recall was a few months back when a few people 
started discussing here some concrete examples of the operations that would be 
made easier by some new tagging subsystem, with ideas for the sort of 
command-line syntax that might use the tags, and getting an idea of what 
features of this subsystem would be most important and so on.  One or two 
proposals that looked quite promising came out of that discussion, and could do 
with being followed up.

Since you obviously care enough to want to help, I encourage you either to have 
a go at reviving that discussion of use cases and proposals that satisfy them, 
or to write up an analysis of the requirements and architectural aspects of 
such a feature, taking all the possible requirements into account and 
evaluating their importance and feasibility.  The reason why I think that would 
be useful is because all the previous discussion is scattered sparsely through 
mailing list threads full of irrelevant and repetitious messages, and the 
developers need a coherent presentation of the issue in order to be able to 
judge it fairly and make progress towards a decision.

There is one other course of action that you could take, that is generally 
suited to this type of project, and that is to "send a patch", i.e. design the 
feature the way you want it, send your description and implementation to us 
here, and see if it is accepted.  If your design is well enough thought out and 
described, the committers will accept it.  I would advise that, in an area like 
this where the Right Answer is far from obvious, your design proposal would 
probably have to include as much analysis of use cases and alternative designs 
as my previous paragraph talked about.

Thank you for your interest, and I look forward to your help with the 
development of a more user-friendly tagging feature.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Vincent Starre <vs...@comcast.net>.
John Calcote wrote:

> Vincent Starre wrote:
>
>> Read a few messages up. This thread is not "CVS's way is better", 
>> this is "limitations of the current system and how they might be 
>> improved". There should probably be a blanket ban on even mentioning 
>> CVS in this thread :)
>
> I would disagree with that sentiment. From the beginning Subversion 
> has been advertised by the designers as being the "replacement for 
> CVS". Very little rational discussion of Subversion features can 
> happen outside the context of  existing CVS features. Granted, this 
> will diminish over time, and eventually will not be the case (when no 
> one can remember CVS anymore! :) But there are still a lot of folks 
> out there using CVS and considering Subversion - they DO care about 
> feature compatibility between Subversion and what they currently use.
>
> John

My only concern is that whenever I see "tag" and "cvs" mentioned in the 
same post (or line, in IRC), the entire thread seems doomed to be a 
shouting match between the "All we want are revision aliases!" people 
and the "here are all the reasons why disconnected revision aliases make 
no sense, revision aliases couldnt possibly make sense" people. More 
generally, it tends to distract from the seperation of "here are the 
curreent problems" and "here are the proposed solutions" (things which I 
think should _always_ be done in two seperate messages with a topic this 
volitile). Instead, people tend to say "well, this is how CVS does it, 
so I think SVN should do it that way".
So I suppose, to clarify: CVS should not be mentioned when discussing a 
limitation of the current system. If you can't describe the limitation 
without mentioning CVS, then the "limitation" is probably just a 
difference in syntax that you're not used to.

Example:
"With CVS, I was able to create tags easily using [such and such]. Here 
I need to type [such and such]!"
vs:
"The commands used to create tags seem overly-long and are non-intuitive 
unless you already have more familiarity with svn's back-end than should 
probably be required for such a basic operation"

This also helps me (and probably nobody else), since I've never used CVS 
at all and have trouble following posts which treat "the CVS way" as 
some sort of standard. If there's a limitation with SVN, I want to know 
about it. Learning the solutions to things makes me eventually work 
faster when I exploit that knowledge the next time I [whatever]. But 
"This is how CVS does it, therefor SVN is limited" doesnt help me.

Yeah, I'm whiny and selfish :)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by kf...@collab.net.
John Calcote <jo...@gmail.com> writes:
> I would disagree with that sentiment. From the beginning Subversion
> has been advertised by the designers as being the "replacement for
> CVS". Very little rational discussion of Subversion features can
> happen outside the context of  existing CVS features. Granted, this
> will diminish over time, and eventually will not be the case (when no
> one can remember CVS anymore! :) But there are still a lot of folks
> out there using CVS and considering Subversion - they DO care about
> feature compatibility between Subversion and what they currently use.

This is already obsolete, I think.

Subversion 1.0 was the "replace CVS" release, but we are now in
territory beyond CVS.  While there's no reason to ignore CVS usage
patterns and interfaces, as one data point among many, CVS is no
longer the driving force behind Subversion's direction.  You should,
in fact, expect most "rational discussion of Subversion features" to
happen outside the context of existing CVS features.

Best,
-Karl

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by John Calcote <jo...@gmail.com>.
Vincent Starre wrote:
> Read a few messages up. This thread is not "CVS's way is better", this 
> is "limitations of the current system and how they might be improved". 
> There should probably be a blanket ban on even mentioning CVS in this 
> thread :)
I would disagree with that sentiment. From the beginning Subversion has 
been advertised by the designers as being the "replacement for CVS". 
Very little rational discussion of Subversion features can happen 
outside the context of  existing CVS features. Granted, this will 
diminish over time, and eventually will not be the case (when no one can 
remember CVS anymore! :) But there are still a lot of folks out there 
using CVS and considering Subversion - they DO care about feature 
compatibility between Subversion and what they currently use.

John

Re: Tags and branches are NOT the same

Posted by Vincent Starre <vs...@comcast.net>.
Jim Blandy wrote:

>On 3/20/06, Vincent Starre <vs...@comcast.net> wrote:
>  
>
>>The only example I've heard is that of "I want to move a couple of files
>>back to the state of the tag"
>>Currently this is done with:
>>svn merge -rBASE /path/to/origin/of/wc /path/to/tag/desired ./filename
>>
>>This has the downsides of:
>> - tending to be a lot to type
>> - unlike an update, you are not given an error when you try to commit
>>without "un-merging"
>> - there is no "memory" of the merge so that it can be un-done easily
>>(an update would let you just say "update" with no
>>   revision specified to get back the latest- though the latest still
>>probably isnt what is wanted, what you really want is what
>>   -rBASE was before the last update- an alias which does not currently
>>exist.. so either way would probably have a problem.
>>   With the current implementation, you need to manually reverse the merge)
>>    
>>
>
>Subversion's model does require more typing, because there isn't a
>natural default for comparisons the way there is in CVS.  We've talked
>about ways to address that, but the topic got dropped; I'd like to
>pick it up again some time.
>  
>
I thought that's what this topic was about..

>As far as the other things are concerned, how does CVS handle that
>situation better?  I'm not sure exactly which CVS commands you have in
>mind; I can't think of any that behave in the way you'd like.
>  
>
Read a few messages up. This thread is not "CVS's way is better", this 
is "limitations of the current system and how they might be improved". 
There should probably be a blanket ban on even mentioning CVS in this 
thread :)
Other replies to this message seem to say that the only example I've 
ever heard of from those who don't like the way svn's tags work has been 
worked out as of 1.3 (I don't have 1.3 and don't have access to 1.3, so 
I can't confirm this, but I dont see any reason to not believe it)

So if indeed single-file switching now works (in which case: does this 
mean I can now create a working copy which only has the files I want in 
it? [eg: in windows, there are many .def files for dlls that need to be 
checked out, they are not needed anywhere else] That could actually make 
me break down and try to build APR everywhere), it may be that I can 
once again claim to not have heard a single valid argument about what's 
wrong with the current tag system. Other than, of course, the typing 
thing, which I really don't care very much about.

I've mentioned previously(in other threads) that one way around the 
typing problem might be to allow URLs to be specified in some way where 
they would be "relative to the URL of the wc". For example:
svn switch ./+../../tags/foo
in a wc checked out from /path/to/origin would translate to:
svn switch /path/tags/foo

Though if indeed you can now switch a single file, that might get confusing.

Realy nonplussed about the whole topic at the moment. If individual 
files can be switched now, I can't come up with any use-case anyone 
could have to complain about.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Danny van Heumen <da...@hccnet.nl>.
John Calcote wrote:
> I'm sorry Jim - I wasn't clear here. I didn't mean that the
> implementation wasn't light-weight in Subversion. You guys are wizards
> in that respect :) I only meant that from the user perspective, it
> should appear to be a simpler thing. But as I stated in an earlier
> response, tags are important enough, that they deserve to be treated as
> a first-class concept.

I'm a short term user of SVN and CVS and I found that it was easier to
understand SVN than CVS, because SVN has less different concepts I
needed to grasp. But okay... that's my experience.

Not trying to flame anyone, but I've got the feeling that this
discussion is going straight to nowhere :-P

Is it possible to just gather some different situations where and how
(CVS) tags are used.

If we can at least get (all) the different situations clear, than it's
possible to discuss how to solve them with SVN and that will make it
much clearer what SVN lacks in possibilities.

And... those who aren't familiar with an situation and approach can
learn from it.

Danny

PS: If you think my comments are useless and I'm annoying you, PLZ!!!
tell me and I'll stop :-).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by John Calcote <jo...@gmail.com>.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jim Blandy wrote:
<blockquote
 cite="mid8f2776cb0603201254g7db84fecyfff7306585a2f858@mail.gmail.com"
 type="cite">
  <pre wrap="">On 3/20/06, John Calcote <a class="moz-txt-link-rfc2396E" href="mailto:john.calcote@gmail.com">&lt;john.calcote@gmail.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">revisions is not enough. Regardless, I would still like to see whatever
comes of this discussion provide a lighter-weight mechanism for managing
simple symbolic revisions.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
When you say "lighter-weight", I'm not sure what you mean.  Creating a
tag in Subversion is a constant-time and constant-space operation,
regardless of the size of the tree being copied.  Placing a tag in
CVS, by comparison, places an entry in the repository for each file
being tagged.  So "cvs tag" takes both time and space proportional to
the size of the tree being tagged.  Subversion tags are much more
light-weight than CVS tags.&nbsp;
  </pre>
</blockquote>
I'm sorry Jim - I wasn't clear here. I didn't mean that the
implementation wasn't light-weight in Subversion. You guys are wizards
in that respect :) I only meant that from the user perspective, it
should appear to be a simpler thing. But as I stated in an earlier
response, tags are important enough, that they deserve to be treated as
a first-class concept.<br>
<br>
John<br>
</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Jim Blandy <ji...@red-bean.com>.
On 3/20/06, John Calcote <jo...@gmail.com> wrote:
> revisions is not enough. Regardless, I would still like to see whatever
> comes of this discussion provide a lighter-weight mechanism for managing
> simple symbolic revisions.

When you say "lighter-weight", I'm not sure what you mean.  Creating a
tag in Subversion is a constant-time and constant-space operation,
regardless of the size of the tree being copied.  Placing a tag in
CVS, by comparison, places an entry in the repository for each file
being tagged.  So "cvs tag" takes both time and space proportional to
the size of the tree being tagged.  Subversion tags are much more
light-weight than CVS tags.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: Tags and branches are NOT the same

Posted by Michael Sinz <Mi...@sinz.org>.
On 3/20/06, John Calcote <jo...@gmail.com> wrote:
> Jim Blandy wrote:
> > But I'd also specifically like to hear from John Calcote, too.  John,
> > what are you trying to do with Subversion at the moment that
> > Subversion's tags handle poorly, but that symbolic names for revisions
> > would do well?
> >
> My use of tags in Subversion is admittedly naive. I've been using them
> to simply assign a symbolic name to a revision (a snapshot in time).
> This is the most basic of use cases provided by CVS tags, and is in fact
> the documented use of tags in the CVS manual. That being the case,
> Subversion's way of managing tags is overkill for my purposes. I don't
> need to branch the project. I just need to flag a particular numerical
> revision as a special case.

Yes, this is the "simplistic" form of tags that many times gets people to
think that this is so trivial.  The problem is that when you get into larger
projects, even the "simple" things get to be not so simple.  (Darn those
details...  life would be so much simpler without details...)

> Speaking of branches, I would also like to see tags implemented such
> that people cannot commit a change from a work area produced from a tag
> - under any conditions. A work area produced from a tag should be
> limited to a snapshot in time and/or space. Anything else defeats the
> general purpose of tags - to get back to a certain point in time for
> historical purposes. Before I get flamed for this remark, I'll qualify
> it by saying that I'm sure other people are doing things with tags that
> would be broken by such a rule. But there are sound fundamental software
> engineering concepts behind this desire. I'm not saying that branching
> from a tag should be disallowed. I'm only saying that people should have
> to make a conscious decision to do so. Which means that a branch must be
> created from a work area produced from a tag before a change to that
> work area could be committed.

I also wish there was a way to make "tags" (branches) immutable in
an easy way.  Turns out that it is not quite as easy if you need to
support mixed revisions due to the way the transaction is built.  However,
if you take a look at my pre-commit hook, it makes the /tags/ and
/releases/ trees immutable:

http://svn.code-host.net/svn/Insurrection/trunk/.htauth/pre-commit

(/releases/ is where we put tags when it actually gets placed into the field)

(NOTE - Yes, you can add to a tag but you can never modify one - the
reason for the "add" hole is that in order to support structured tags
I had to support adding at any level.  I am sure that could be locked
down some more once the structure of the tags tree is known.)

> This discussion has taught me a lot about the way other people use tags,
> and I'm inclined to think I might revise my use of tags in the future to
> include some of these other uses, so I would at this point tend to agree
> with a lot of people on this thread that simple symbolic names for
> revisions is not enough. Regardless, I would still like to see whatever
> comes of this discussion provide a lighter-weight mechanism for managing
> simple symbolic revisions.

I think that many people had covered that ground you just described.
You just happen to have described it rather nicely here.  The problem
set gets complicated rather quickly, especially when you start having
really complex projects with complex tagging requirements.

--
Michael Sinz               Technology and Engineering Director/Consultant
"Starting Startups"                          mailto:Michael.Sinz@sinz.org
My place on the web                      http://www.sinz.org/Michael.Sinz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: Tags and branches are NOT the same

Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Tue, Mar 21, 2006 at 12:12:25PM +0200, Alan Barrett wrote:
> On Tue, 21 Mar 2006, Malcolm Rowe wrote:
> > The CVS alternative, where tags are immutable, [...]
> 
> Tags are not immutable in CVS.  Both "cvs tag" and "cvs rtag" support
> the "-F" flag to move an existing tag.  After you move (or delete) a tag
> in CVS, there's no history of where the tag used to point.
> 

Okay, so tags can also be deleted.  I guess I should have said that the
contents of tags were immutable.

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Alan Barrett <ap...@cequrux.com>.
On Tue, 21 Mar 2006, Malcolm Rowe wrote:
> The CVS alternative, where tags are immutable, [...]

Tags are not immutable in CVS.  Both "cvs tag" and "cvs rtag" support
the "-F" flag to move an existing tag.  After you move (or delete) a tag
in CVS, there's no history of where the tag used to point.

--apb (Alan Barrett)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Mon, Mar 20, 2006 at 02:59:12PM -0700, John Calcote wrote:
> Understood. When I used the term immutable, I was referring to the 
> contents of a work area arrived at via a tag, not the tag itself. 
> Clearly, there are advantages to having tags be deletable, or movable.

I really _don't_ want to get involved in this conversation, but I would
like to throw in a quick point / use-case here that's not been mentioned
so far.

One (unexpected?) advantage of the fact that tags are _not_ immutable
in Subversion is that it's possible to use them in place of release
minibranches (that is, where a 'branding' or 'labelling' step needs to
be made before a release can be cut).

A good example is the Subversion codebase itself.  When the
time came to release 1.1.0, we copied branches/1.1.x to
tags/1.1.0 (in r11188), then (in r11189) checked in a change to
tags/1.1.0/subversion/include/svn_version.h to label the tag with the
correct revision number [1].

The CVS alternative, where tags are immutable, is either to churn the
revision number on the branch as necessary (q.v. GCC), or to create
short-lived minibranches (branches/1.1.0-minibranch) onto which the
labelling change can be made (q.v. Mozilla) before the final tag
operation.

Regards,
Malcolm

[1] I note that we don't do this any more (instead, we tag from a working
    copy that contains the right revision and the altered svn_version.h
    file).  But that's yet another 'non-CVS tag' operation.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Vincent Starre <vs...@comcast.net>.
John Calcote wrote:

> Vincent Starre wrote:
>
>> I really disagree strongly with the idea that tags are just 
>> hacked-on. Something being a natural side-effect of a 
>> well-thought-out implementation- that is, requiring /no further code 
>> to work/ is a good thing, something to be praised, not a bad thing.
>
> I will admit that it's cool that tags CAN be implemented in terms of 
> existing code. I never said Subversion wasn't well-designed. I was 
> only stating that the concept of tags is important enough in version 
> control to truly warrant its elevation to first-class status. I still 
> believe this is true.
>
> Let me give you an example from my current projects. I work for Novell 
> in the directory and identity spaces. In this domain, we can build 
> nearly all (relevant) concepts on the fundamental entry/attribute 
> model. We chose not to do so because the flexibility this affords 
> would allow people to do dumb things. (Incidentally, in the directory 
> and identity spaces, we call this a security hole.:) )
>
>> As for immutability, while tags represent an area which is "not to be 
>> messed with", that's far from immutable. Certainly, there are some 
>> tags which shoulodnt be touched, but the vast majority of tags (that 
>> I use, as opposed to that exist in the repos) I use are in fact 
>> "mutable". That is, they are not to be worked on, but they certainly 
>> do not represent a /single/ point in time.
>
> Understood. When I used the term immutable, I was referring to the 
> contents of a work area arrived at via a tag, not the tag itself. 
> Clearly, there are advantages to having tags be deletable, or movable.
>
>> "built-in" support for immutability? Can't this be handled through 
>> locks? (and can't locks be triggered with a hook?)
>
> Sure, and can't symbolic names for revisions be managed by putting a 
> file called TAGS at the root of your project that contains a simple 
> mapping of revision numbers to symbolic names? Of course, but no one 
> would call this an elegant solution - even after you showed them the 
> grep/sed hack. :)
>
>> I would shy from any change which would attempt to make svn "aware" 
>> of the filesystem in a way which is not implemented through 
>> user-defined hooks. Perhaps what is really needed is a better 
>> framework for writing hooks? I'm sure such things already exist for 
>> all the major languages, so maybe what's really needed is to 
>> publicize such things more :)
>
> Subversion is not only already "aware" of the file system, but for 
> some back-ends (Berkeley DB, for instance), it IS the file system. 
> Besides, I don't really believe that tags-as-a-first-class-concept is 
> going to intrude on the file system very much. This is really a 
> database issue, not a file system issue. If the file system you're 
> referring to is the client-side work area, then I should clarify that 
> I never stated that users shouldn't be able to modify their work area 
> in any way they wanted - I only said that Subversion would not allow 
> comits from a work area produced from a tag. Returning to my example 
> above from the directory and identity spaces - this is what I'd call 
> "a dumb thing that people might do".
>
> John

When I say "the filesystem" I don't mean the OS filesystem, I mean the 
versioned filesystem which Subversion is directly responsible for- I 
don't think subversion itself should know anything about its structure 
and what it means.
This ties directly back to what you said about people doing dumb things, 
and is a sheer difference in philosophy: I think only very poor systems 
prevent people from doing something stupid :)
Bare with me.. it's not entirely insane.
When you try to define "the way this works", the problem comes in trying 
to please everybody. You either wind up with an inflexible system which 
98% of the time needs to be ignored anyway, or you wind up with 
something which is just 100% useless. Currently, anyone can implement 
whatever controls for tags that they want. I would suggest the answer 
isnt "pushing tags into a seperate namespace", but rather just including 
more default hooks and making them more easily accessible to the average 
user. In essence: since the code is already there, why not just use that 
code? I don't ever see the point in re-implementing something which is 
already implemented in a more robust manner than any other solution 
could offer. Especially when the "old way" would still be around in 
order to still support the "more robust" method- this could only lead to 
confusion.
As for making it a "first class citizen", that's really a loaded term. 
Tags already are just as "first class" as every other object in the 
filesystem. Seperating tags, that is, adding forced constraints to them, 
could only make them /less/, not more.

I agree there should be more support for warning someone when they are 
about to do something stupid, but I dont think that should be done 
peicemeal. If hooks aren't "good enough" for you, maybe they are what 
actually need to be improved apon. I really dont think the core code 
needs to be touched on the grounds of a philisophical war. All I ever 
hear from those who like to pretend that SVN doesnt have built-in 
support for tagging is that the current method somehow doesnt feel right 
or is inelegant because it is so powerful and can suit everyone's needs 
perfectly. They want the ability to be utterly limited in what they are 
capable of doing. The reason I fight this is that I just don't 
understand that kind of logic.

Again, in all seriousness: couldnt this be implemented using locks? 
(I've not used svn's locks, so I don't know)
Please help me understand if that wouldnt be suitable. You dont want to 
be able to commit to something, SVN has the ability to say "this can't 
be comitted to", so why not that?
A more elegant way to access hooks, to organize hooks, to call hooks, 
that might be useful. If hooks as they are are too inelegant, why not 
make hooks better instead of trying to shunt everything into a new 
second-class citizen whenever something that by all rights should be 
implemented as a hook + filesystem combo comes up?
If it can be implemented without touching the main code, and can be done 
well, why bother? If it can't, is this a limitation of the main code, or 
a limitation of what !theMainCode can do?

too much random thoughts. stopping :)



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by John Calcote <jo...@gmail.com>.
Vincent Starre wrote:
> I really disagree strongly with the idea that tags are just hacked-on. 
> Something being a natural side-effect of a well-thought-out 
> implementation- that is, requiring /no further code to work/ is a good 
> thing, something to be praised, not a bad thing.
I will admit that it's cool that tags CAN be implemented in terms of 
existing code. I never said Subversion wasn't well-designed. I was only 
stating that the concept of tags is important enough in version control 
to truly warrant its elevation to first-class status. I still believe 
this is true.

Let me give you an example from my current projects. I work for Novell 
in the directory and identity spaces. In this domain, we can build 
nearly all (relevant) concepts on the fundamental entry/attribute model. 
We chose not to do so because the flexibility this affords would allow 
people to do dumb things. (Incidentally, in the directory and identity 
spaces, we call this a security hole.:) )
> As for immutability, while tags represent an area which is "not to be 
> messed with", that's far from immutable. Certainly, there are some 
> tags which shoulodnt be touched, but the vast majority of tags (that I 
> use, as opposed to that exist in the repos) I use are in fact 
> "mutable". That is, they are not to be worked on, but they certainly 
> do not represent a /single/ point in time.
Understood. When I used the term immutable, I was referring to the 
contents of a work area arrived at via a tag, not the tag itself. 
Clearly, there are advantages to having tags be deletable, or movable.
> "built-in" support for immutability? Can't this be handled through 
> locks? (and can't locks be triggered with a hook?)
Sure, and can't symbolic names for revisions be managed by putting a 
file called TAGS at the root of your project that contains a simple 
mapping of revision numbers to symbolic names? Of course, but no one 
would call this an elegant solution - even after you showed them the 
grep/sed hack. :)

> I would shy from any change which would attempt to make svn "aware" of 
> the filesystem in a way which is not implemented through user-defined 
> hooks. Perhaps what is really needed is a better framework for writing 
> hooks? I'm sure such things already exist for all the major languages, 
> so maybe what's really needed is to publicize such things more :)
Subversion is not only already "aware" of the file system, but for some 
back-ends (Berkeley DB, for instance), it IS the file system. Besides, I 
don't really believe that tags-as-a-first-class-concept is going to 
intrude on the file system very much. This is really a database issue, 
not a file system issue. If the file system you're referring to is the 
client-side work area, then I should clarify that I never stated that 
users shouldn't be able to modify their work area in any way they wanted 
- I only said that Subversion would not allow comits from a work area 
produced from a tag. Returning to my example above from the directory 
and identity spaces - this is what I'd call "a dumb thing that people 
might do".

John


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Vincent Starre <vs...@comcast.net>.
John Calcote wrote:

> John Peacock wrote:
>
>> John Calcote wrote:
>>
>>> Speaking of branches, I would also like to see tags implemented such 
>>> that people cannot commit a change from a work area produced from a 
>>> tag - under any conditions. 
>>
>>
>> That is a _convention_ that many sites adhere to, but doesn't need to 
>> be coded into the _application_ itself.  There are at least a couple 
>> of ways to enforce that on the server, with a pre-commit hook being 
>> the most easily managed.
>
> It's really great that there's a way to make this work, but how is 
> this different from the tag-file/grep/sed construct in my original 
> post as a way of managing tags as symbolic revisions? I'm talking 
> about TAGS being treated as a first-class concept in Subversion. Not a 
> thing to be hacked in on the side with hook scripts. Let me back off a 
> little and try to state it less harshly and more concisely. Subversion 
> TAGS as a way of accessing immutable snapshots is a concept important 
> enough to version control systems that they SHOULD be added to the 
> application.

I really disagree strongly with the idea that tags are just hacked-on. 
Something being a natural side-effect of a well-thought-out 
implementation- that is, requiring /no further code to work/ is a good 
thing, something to be praised, not a bad thing.
As for immutability, while tags represent an area which is "not to be 
messed with", that's far from immutable. Certainly, there are some tags 
which shoulodnt be touched, but the vast majority of tags (that I use, 
as opposed to that exist in the repos) I use are in fact "mutable". That 
is, they are not to be worked on, but they certainly do not represent a 
/single/ point in time.
Example: Whenever we send code to Texas, we tag it. Texas isn't a 
branch, because it always represents a state of Trunk. But it would be 
pointless to have seperate tags for Texas-2005-11-02 and 
Texas-2006-02-07 when calling a tag by the same name all the time works 
much better, and the dates are automatically logged anyway.
I once had a vast array of branch-tags as well, but now find that I'm 
less likely to forget to write a log message than I am to forget to tag 
something.
Meanwhile, nobody will ever touch 2.0r19 (this is handled by a hook)

"built-in" support for immutability? Can't this be handled through 
locks? (and can't locks be triggered with a hook?)

I would shy from any change which would attempt to make svn "aware" of 
the filesystem in a way which is not implemented through user-defined 
hooks. Perhaps what is really needed is a better framework for writing 
hooks? I'm sure such things already exist for all the major languages, 
so maybe what's really needed is to publicize such things more :)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by John Peacock <jp...@rowman.com>.
John Calcote wrote:
> I believe the fundamental concept of TAGS includes immutability. A 
> mutable tag, by definition, is a branch, not a tag. Furthermore, making 
> TAGS a first-class concept removes any need for mutability in tags.

The problem is that, /a priori/, you've decided that _your_ definition 
is the *only* possible definition for "tag" and that anything else is 
wrong.  On the other hand, the Subversion project has decided that there 
is no _functional_ advantage to elevating the concept of "tag" to a 
first class object, since it is just as easy to deal with the same 
_concept_ in several different ways.

I will go even farther and suggest that when a full-fledged ACL 
functionality is available within Subversion itself, the concept of a 
"tag" folder can be handled more easily with a CREATE right (as 
different from WRITE) that will deal with this more naturally.

I could imagine a situation where a tag could be created and/or deleted, 
but not updated (hence create/delete/create could be a replacement).
That isn't possible with your narrower interpretation.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Vincent Starre <vs...@comcast.net>.
John Calcote wrote:

> John Peacock wrote:
>
>> John Calcote wrote:
>>
>>> Speaking of branches, I would also like to see tags implemented such 
>>> that people cannot commit a change from a work area produced from a 
>>> tag - under any conditions. 
>>
>>
>> That is a _convention_ that many sites adhere to, but doesn't need to 
>> be coded into the _application_ itself.  There are at least a couple 
>> of ways to enforce that on the server, with a pre-commit hook being 
>> the most easily managed.
>
> It's really great that there's a way to make this work, but how is 
> this different from the tag-file/grep/sed construct in my original 
> post as a way of managing tags as symbolic revisions? I'm talking 
> about TAGS being treated as a first-class concept in Subversion. Not a 
> thing to be hacked in on the side with hook scripts. Let me back off a 
> little and try to state it less harshly and more concisely. Subversion 
> TAGS as a way of accessing immutable snapshots is a concept important 
> enough to version control systems that they SHOULD be added to the 
> application.
>
> As far as convention is concerned...well, there's a reason that many 
> sites adhere to this convention. It's a sound software engineering 
> principle. How useful is your source code repository (from both 
> engineering and legal standpoints) if its history is blurred by 
> check-ins on tags? I want to take a stand on this - and please DO 
> comment if you disagree:
>
> I believe the fundamental concept of TAGS includes immutability. A 
> mutable tag, by definition, is a branch, not a tag. Furthermore, 
> making TAGS a first-class concept removes any need for mutability in 
> tags.
>
> John
>
I should probably mention my strong bias in that I hold the 
philisophical belief that good conventions are only good /because/ they 
are conventions, and that attempting to build any type of enforcement or 
even standard method of allowing enforcement tends to take away from the 
goodness of the convention. (eg: standard forms of code indenting are 
only meaningful because the option exists to not indent when that too is 
meaningful -- please keep any replies to /that/ off the list. Perfectly 
willing to have a flame war in my own mailbox without cluttering 
everyone else's)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by John Calcote <jo...@gmail.com>.
Thomas Singer wrote:
> Maybe it would be a good idea to add a certain property to the files 
> instead of tagging them and being able to retrieve them later by 
> specifying this property value?
Thomas, I've actually considered this as a mechanism for implementing 
tags properly in Subversion, and I believe it could work. I've not 
thought carefully about the scalability issues yet, however, and I have 
a feeling that implementing tags as properties on each file might not 
scale very well. It might also not fit well into the existing efficiency 
framework designed into Subversion - eg., minimizing traffic between 
server and client for so many commands.

John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by John Calcote <jo...@gmail.com>.
John Peacock wrote:
> John Calcote wrote:
>> Speaking of branches, I would also like to see tags implemented such 
>> that people cannot commit a change from a work area produced from a 
>> tag - under any conditions. 
>
> That is a _convention_ that many sites adhere to, but doesn't need to 
> be coded into the _application_ itself.  There are at least a couple 
> of ways to enforce that on the server, with a pre-commit hook being 
> the most easily managed.
It's really great that there's a way to make this work, but how is this 
different from the tag-file/grep/sed construct in my original post as a 
way of managing tags as symbolic revisions? I'm talking about TAGS being 
treated as a first-class concept in Subversion. Not a thing to be hacked 
in on the side with hook scripts. Let me back off a little and try to 
state it less harshly and more concisely. Subversion TAGS as a way of 
accessing immutable snapshots is a concept important enough to version 
control systems that they SHOULD be added to the application.

As far as convention is concerned...well, there's a reason that many 
sites adhere to this convention. It's a sound software engineering 
principle. How useful is your source code repository (from both 
engineering and legal standpoints) if its history is blurred by 
check-ins on tags? I want to take a stand on this - and please DO 
comment if you disagree:

I believe the fundamental concept of TAGS includes immutability. A 
mutable tag, by definition, is a branch, not a tag. Furthermore, making 
TAGS a first-class concept removes any need for mutability in tags.

John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by John Peacock <jp...@rowman.com>.
John Calcote wrote:
> Speaking of branches, I would also like to see tags implemented such 
> that people cannot commit a change from a work area produced from a tag 
> - under any conditions. 

That is a _convention_ that many sites adhere to, but doesn't need to be 
coded into the _application_ itself.  There are at least a couple of 
ways to enforce that on the server, with a pre-commit hook being the 
most easily managed.  See:

	./tools/hook-scripts/commit-access-control.pl

as one possible solution.  At some point, if someone else doesn't beat 
me to it, I will write a commit-write-once script which will permit any 
user to create a tag, but refuse to write to an existing tags.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by John Calcote <jo...@gmail.com>.
Jim Blandy wrote:
> But I'd also specifically like to hear from John Calcote, too.  John,
> what are you trying to do with Subversion at the moment that
> Subversion's tags handle poorly, but that symbolic names for revisions
> would do well?
>   
My use of tags in Subversion is admittedly naive. I've been using them 
to simply assign a symbolic name to a revision (a snapshot in time). 
This is the most basic of use cases provided by CVS tags, and is in fact 
the documented use of tags in the CVS manual. That being the case, 
Subversion's way of managing tags is overkill for my purposes. I don't 
need to branch the project. I just need to flag a particular numerical 
revision as a special case.

Speaking of branches, I would also like to see tags implemented such 
that people cannot commit a change from a work area produced from a tag 
- under any conditions. A work area produced from a tag should be 
limited to a snapshot in time and/or space. Anything else defeats the 
general purpose of tags - to get back to a certain point in time for 
historical purposes. Before I get flamed for this remark, I'll qualify 
it by saying that I'm sure other people are doing things with tags that 
would be broken by such a rule. But there are sound fundamental software 
engineering concepts behind this desire. I'm not saying that branching 
from a tag should be disallowed. I'm only saying that people should have 
to make a conscious decision to do so. Which means that a branch must be 
created from a work area produced from a tag before a change to that 
work area could be committed.

This discussion has taught me a lot about the way other people use tags, 
and I'm inclined to think I might revise my use of tags in the future to 
include some of these other uses, so I would at this point tend to agree 
with a lot of people on this thread that simple symbolic names for 
revisions is not enough. Regardless, I would still like to see whatever 
comes of this discussion provide a lighter-weight mechanism for managing 
simple symbolic revisions.

John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Jim Blandy <ji...@red-bean.com>.
On 3/20/06, Vincent Starre <vs...@comcast.net> wrote:
> The only example I've heard is that of "I want to move a couple of files
> back to the state of the tag"
> Currently this is done with:
> svn merge -rBASE /path/to/origin/of/wc /path/to/tag/desired ./filename
>
> This has the downsides of:
>  - tending to be a lot to type
>  - unlike an update, you are not given an error when you try to commit
> without "un-merging"
>  - there is no "memory" of the merge so that it can be un-done easily
> (an update would let you just say "update" with no
>    revision specified to get back the latest- though the latest still
> probably isnt what is wanted, what you really want is what
>    -rBASE was before the last update- an alias which does not currently
> exist.. so either way would probably have a problem.
>    With the current implementation, you need to manually reverse the merge)

Subversion's model does require more typing, because there isn't a
natural default for comparisons the way there is in CVS.  We've talked
about ways to address that, but the topic got dropped; I'd like to
pick it up again some time.

As far as the other things are concerned, how does CVS handle that
situation better?  I'm not sure exactly which CVS commands you have in
mind; I can't think of any that behave in the way you'd like.

But I'd also specifically like to hear from John Calcote, too.  John,
what are you trying to do with Subversion at the moment that
Subversion's tags handle poorly, but that symbolic names for revisions
would do well?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: Tags and branches are NOT the same

Posted by Folker Schamel <sc...@spinor.com>.
Vincent Starre wrote:
> Folker Schamel wrote:
> 
>> Vincent Starre wrote:
>>
>>> The only example I've heard is that of "I want to move a couple of 
>>> files back to the state of the tag"
>>> Currently this is done with:
>>> svn merge -rBASE /path/to/origin/of/wc /path/to/tag/desired ./filename
>>
>>
>> Use "svn switch" instead of "svn merge".
>>
>> Cheers,
>> Folker
> 
> Seem to have missed the point:
> 1) "switch" doesnt operate on single files. Adding this as a feature 
> would be one way to help this out, but this would require implementation 
> of "views", which I gather arent even on the radar. (in 1.2, attempting 
> to switch a single file silently does nothing)
> 2) In 1.2, attempting to switch a single file using the syntax described 
> above (replacing only "merge" with "switch", not changing the URLs to 
> point to the individual file) is a great way to place your wc into an 
> irreperable state. Try it, it's fun.
> These may both be bugs, but I do not have 1.3, so I can't try. If anyone 
> else cares to attempt to reproduce, go ahead.

For me switching a single file with svn 1.3 works fine, see below.
If this was the only thing you missed in svn ... ;-)

Cheers,
Folker

*****

C:\temp\svntest>svn --version
svn, version 1.3.0 (r17949)
    compiled Jan 15 2006, 23:18:48

Copyright (C) 2000-2005 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
   - handles 'http' scheme
   - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
   - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
   - handles 'file' scheme


C:\temp\svntest>svnadmin create repo

C:\temp\svntest>svn mkdir file:///temp/svntest/repo/trunk -m "Test"

Committed revision 1.

C:\temp\svntest>svn mkdir file:///temp/svntest/repo/branches -m "Test"

Committed revision 2.

C:\temp\svntest>svn checkout file:///temp/svntest/repo/trunk wc
Checked out revision 2.

C:\temp\svntest>cd wc

C:\temp\svntest\wc>echo >test1.txt

C:\temp\svntest\wc>echo >test2.txt

C:\temp\svntest\wc>svn add *.txt
A         test1.txt
A         test2.txt

C:\temp\svntest\wc>svn commit -m "Test"
Adding         test1.txt
Adding         test2.txt
Transmitting file data ..
Committed revision 3.

C:\temp\svntest\wc>svn copy file:///temp/svntest/repo/trunk file:///temp/svntest
/repo/branches/mybranch -m "Test"

Committed revision 4.

C:\temp\svntest\wc>svn switch file:///temp/svntest/repo/branches/mybranch/test2.
txt test2.txt
At revision 4.

C:\temp\svntest\wc>svn info *.txt
Path: test1.txt
Name: test1.txt
URL: file:///temp/svntest/repo/trunk/test1.txt
Repository Root: file:///temp/svntest/repo
Repository UUID: 37a7a4a0-f12b-d74e-9a15-f4722dea34df
Revision: 3
Node Kind: file
Schedule: normal
Last Changed Author: folker
Last Changed Rev: 3
Last Changed Date: 2006-03-20 20:05:56 +0100 (Mo, 20 Mrz 2006)
Text Last Updated: 2006-03-20 20:05:44 +0100 (Mo, 20 Mrz 2006)
Properties Last Updated: 2006-03-20 20:05:51 +0100 (Mo, 20 Mrz 2006)
Checksum: 284f1df5b7a038c43a31ec70907734ff

Path: test2.txt
Name: test2.txt
URL: file:///temp/svntest/repo/branches/mybranch/test2.txt
Repository Root: file:///temp/svntest/repo
Repository UUID: 37a7a4a0-f12b-d74e-9a15-f4722dea34df
Revision: 4
Node Kind: file
Schedule: normal
Last Changed Author: folker
Last Changed Rev: 3
Last Changed Date: 2006-03-20 20:05:56 +0100 (Mo, 20 Mrz 2006)
Text Last Updated: 2006-03-20 20:05:47 +0100 (Mo, 20 Mrz 2006)
Properties Last Updated: 2006-03-20 20:05:51 +0100 (Mo, 20 Mrz 2006)
Checksum: 284f1df5b7a038c43a31ec70907734ff


C:\temp\svntest\wc>svn switch file:///temp/svntest/repo/trunk
At revision 4.

C:\temp\svntest\wc>svn info *.txt
Path: test1.txt
Name: test1.txt
URL: file:///temp/svntest/repo/trunk/test1.txt
Repository Root: file:///temp/svntest/repo
Repository UUID: 37a7a4a0-f12b-d74e-9a15-f4722dea34df
Revision: 4
Node Kind: file
Schedule: normal
Last Changed Author: folker
Last Changed Rev: 3
Last Changed Date: 2006-03-20 20:05:56 +0100 (Mo, 20 Mrz 2006)
Text Last Updated: 2006-03-20 20:05:44 +0100 (Mo, 20 Mrz 2006)
Properties Last Updated: 2006-03-20 20:05:51 +0100 (Mo, 20 Mrz 2006)
Checksum: 284f1df5b7a038c43a31ec70907734ff

Path: test2.txt
Name: test2.txt
URL: file:///temp/svntest/repo/trunk/test2.txt
Repository Root: file:///temp/svntest/repo
Repository UUID: 37a7a4a0-f12b-d74e-9a15-f4722dea34df
Revision: 4
Node Kind: file
Schedule: normal
Last Changed Author: folker
Last Changed Rev: 3
Last Changed Date: 2006-03-20 20:05:56 +0100 (Mo, 20 Mrz 2006)
Text Last Updated: 2006-03-20 20:05:47 +0100 (Mo, 20 Mrz 2006)
Properties Last Updated: 2006-03-20 20:05:51 +0100 (Mo, 20 Mrz 2006)
Checksum: 284f1df5b7a038c43a31ec70907734ff


C:\temp\svntest\wc>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 3/20/06, Vincent Starre <vs...@comcast.net> wrote:

> Seem to have missed the point:
> 1) "switch" doesnt operate on single files. Adding this as a feature
> would be one way to help this out, but this would require implementation
> of "views", which I gather arent even on the radar. (in 1.2, attempting
> to switch a single file silently does nothing)

Umm, that's wrong.  Switch works just fine on single files.

$ svn switch http://url/of/file localfile
U    localfile
Updated to revision 10.

> 2) In 1.2, attempting to switch a single file using the syntax described
> above (replacing only "merge" with "switch", not changing the URLs to
> point to the individual file) is a great way to place your wc into an
> irreperable state. Try it, it's fun.

If you have a recipie to get a WC into an irreparable state, I'd love to see it.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: Tags and branches are NOT the same

Posted by Vincent Starre <vs...@comcast.net>.
Folker Schamel wrote:

> Vincent Starre wrote:
>
>> The only example I've heard is that of "I want to move a couple of 
>> files back to the state of the tag"
>> Currently this is done with:
>> svn merge -rBASE /path/to/origin/of/wc /path/to/tag/desired ./filename
>
>
> Use "svn switch" instead of "svn merge".
>
> Cheers,
> Folker

Seem to have missed the point:
1) "switch" doesnt operate on single files. Adding this as a feature 
would be one way to help this out, but this would require implementation 
of "views", which I gather arent even on the radar. (in 1.2, attempting 
to switch a single file silently does nothing)
2) In 1.2, attempting to switch a single file using the syntax described 
above (replacing only "merge" with "switch", not changing the URLs to 
point to the individual file) is a great way to place your wc into an 
irreperable state. Try it, it's fun.
These may both be bugs, but I do not have 1.3, so I can't try. If anyone 
else cares to attempt to reproduce, go ahead.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Folker Schamel <sc...@spinor.com>.
Vincent Starre wrote:
> Jim Blandy wrote:
> 
>> Nobody disagrees that symbolic revision names would be easy to
>> implement.  That's not why we avoided them.  We avoided them because
>> we thought we had a simpler way to do a better job.
>>
>> What are you trying to do with Subversion at the moment that
>> Subversion's tags handle poorly, but that symbolic names for revisions
>> would do well?
>>  
>>
> 
> The only example I've heard is that of "I want to move a couple of files 
> back to the state of the tag"
> Currently this is done with:
> svn merge -rBASE /path/to/origin/of/wc /path/to/tag/desired ./filename

Use "svn switch" instead of "svn merge".

Cheers,
Folker

> 
> This has the downsides of:
> - tending to be a lot to type
> - unlike an update, you are not given an error when you try to commit 
> without "un-merging"
> - there is no "memory" of the merge so that it can be un-done easily (an 
> update would let you just say "update" with no
>   revision specified to get back the latest- though the latest still 
> probably isnt what is wanted, what you really want is what
>   -rBASE was before the last update- an alias which does not currently 
> exist.. so either way would probably have a problem.
>   With the current implementation, you need to manually reverse the merge)
> 
> Of course, the other example of "I want to examine a tag, but don't want 
> to accidentally commit to it" can be easily fixed with hook scripts.
> 
> As an aside, I use tags primarily for auditing, and do most backtracking 
> through log-mining and svn blame, so I am _not_ the best-versed in this 
> use case.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Vincent Starre <vs...@comcast.net>.
Jim Blandy wrote:

>Nobody disagrees that symbolic revision names would be easy to
>implement.  That's not why we avoided them.  We avoided them because
>we thought we had a simpler way to do a better job.
>
>What are you trying to do with Subversion at the moment that
>Subversion's tags handle poorly, but that symbolic names for revisions
>would do well?
>  
>

The only example I've heard is that of "I want to move a couple of files 
back to the state of the tag"
Currently this is done with:
svn merge -rBASE /path/to/origin/of/wc /path/to/tag/desired ./filename

This has the downsides of:
 - tending to be a lot to type
 - unlike an update, you are not given an error when you try to commit 
without "un-merging"
 - there is no "memory" of the merge so that it can be un-done easily 
(an update would let you just say "update" with no
   revision specified to get back the latest- though the latest still 
probably isnt what is wanted, what you really want is what
   -rBASE was before the last update- an alias which does not currently 
exist.. so either way would probably have a problem.
   With the current implementation, you need to manually reverse the merge)

Of course, the other example of "I want to examine a tag, but don't want 
to accidentally commit to it" can be easily fixed with hook scripts.

As an aside, I use tags primarily for auditing, and do most backtracking 
through log-mining and svn blame, so I am _not_ the best-versed in this 
use case.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Tags and branches are NOT the same

Posted by Jim Blandy <ji...@red-bean.com>.
Nobody disagrees that symbolic revision names would be easy to
implement.  That's not why we avoided them.  We avoided them because
we thought we had a simpler way to do a better job.

What are you trying to do with Subversion at the moment that
Subversion's tags handle poorly, but that symbolic names for revisions
would do well?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org