AW: Re: Simple Label=RevisionID Discussion
From: Felix Gilcher <gilcher_at_exozet.com>
Date: 2006-11-22 17:22:45 CET
John Rouillard <mailto:firstname.lastname@example.org> schrieb am Mittwoch, 22. November 2006 16:53:
> On Wed, Nov 22, 2006 at 09:49:01AM +0100, Robert Graf-Waczenski wrote:
I see you're trying to replace tags by labels. You really should be aware that if a label is a revision alias it does not carry enough information to identify a production release. Regard subversion as a versioned filesystem. Every resource can be identified by 2 coordinates: a paths and a time coordinate. Time is what you specify with the revision argument to the svn command unless HEAD is implied. So what does a label "PRODUCTION" mean if it references revision X? Is it
componentY/stable/version1/ at revision X
componentY/development/currently_broken/ at revision X
Things get even worse when you have a repository as the apache foundation  has: all ASF projects from ANT to xmlgraphics are in a single repository - this is quite a common usecase. What does the label "PRODUCTION" mean in this context?
So you'd have to specify
svn co -r"APR_PRODUCTION" http://svn.apache.org/repos/asf/apr/apr/trunk/
or something similar instead of
Which one of the two is more error prone? Without a doubt the first one. What happens if you confuse which labels belong to which path of your project? You may get build errors or even worse build and release old, buggy versions. The current tagging mechanism is way more suited to identifying frozen revisions such as "PRODUCTION".
So what I'm missing in this discussion is what exact benefits do you all expect from labels as revision ids? What about this:
Make it possible to specify a svn url in the -r argument. If the argument is an url, it gets replaced by the revision in which the branch/tag was created. There are some corner cases (what happens if the url does not point to branch etc.), but it would be possible to create such an implementation as a shellwrapper to svn for testing purposes.
-- Felix Gilcher Head of IT Development Exozet Berlin GmbH Rotherstraße 20 10245 Berlin eMail: email@example.com URL: www.exozet.com --------------------------------------------------------------------- To unsubscribe, e-mail: firstname.lastname@example.org For additional commands, e-mail: email@example.comReceived on Wed Nov 22 17:24:47 2006
This is an archived mail posted to the Subversion Users mailing list.