CVSy stuff
According to the folk wisdom around CVS, long-lived branches make operations slower. Here's some evidence:
http://mail.gnu.org/archive/html/info-cvs/2001-08/msg00939.html
http://sources.redhat.com/ml/gdb/2003-03/msg00091.html
Le mardi, 18 mar 2003, =E0 15:33 Europe/Paris, Matthew Wilcox a =E9crit = :
Quoted 14 lines
So how about this model...
1. -> linus
1.1 ->LINUS_260
1.2 ->LINUS_261
1.2.1 ->parisc_261
1.2.1.1 ->CVS261_PA1
1.2.1.2 ->CVS261_PA2
...
1.3 ->LINUS_262
1.3.1 ->parisc_262
1.3.1.1 ->CVS262_PA1
Quoted 2 lines
OK, this model clearly fits CVS' needs much better. How about ours? Well, it sucks that you're always developing on a branch. It sucks =
for
Quoted 8 lines
people who're used to doing 'cvs up -A' to get to the trunk, because they now get Linus instead of us. It also sucks that you stay on
parisc_261when you type "cvs up", so you have to explictly say "cvs up -rparisc_262".However, it doesn't have the suckitude of vendor branches, and it=20 allows
us to reasonably use cvs diff -rlinus. Choose your suck.
Well, as a matter of fact, it sucks.
Now, we have several alternatives:
* Use BK.
* Upgrade DSL2 to an arse-kicking Quad-P4Xeon 3 point oh fuckin' six=20 sweet gigahertz.
You won't see anymore lag.
More seriously, I'm no CVS/SCM guru either, and I think that scheme=20 *could* work,
assuming we slap ourselves with some tyrannosaurus' tails to get used=20 to these CVS
habits.
My own concern is that I don't really see the need for a 4th depth=20 level. Stop at
'parisc' branch and work on it seems fairly enough to me, i mean, do we=20=
really want
to be able to retrieve any '-paXX' subversion, which are usually more=20 or less about
changing a dozen of lines in a couple of files in the worse case ?
I'd apply that well known sentence taken from Linux' Coding Styles:
"if you need more than 3 levels of indentation, you're screwed anyway,=20=
and should fix
your program."
I'd say the same goes for CVS branches depth.
I also confess my lack of CVS knowledge, but I like the way gcc/gdb and=20=
other gnu
projects manage their CVS; that is having their trunk on HEAD, and=20 branches
corresponding to releases. I guess this is related to that=20 heavily-sucking-vendor-
branches-stuff-willy-hates, and I'm not even certain we could do the=20 same on a kernel
development tree, so I won't ask more. Just wanted to express my view :)
HTH,
Thibaut VARENE
The PA/Linux ESIEE Team
http://pateam.esiee.fr/=
Quoted 12 lines · Thibaut VARENE
Quoted 10 lines · Matthew Wilcox
1. -> linus
1.1 ->LINUS_260
1.2 ->LINUS_261
1.2.1 ->parisc_261
1.2.1.1 ->CVS261_PA1
1.2.1.2 ->CVS261_PA2
...
1.3 ->LINUS_262
1.3.1 ->parisc_262
1.3.1.1 ->CVS262_PA1
Quoted 4 lines
Well, as a matter of fact, it sucks.
Now, we have several alternatives:
* Use BK.
Sorry, I don't think we have the bandwidth to deal with the ensuing flame-war on parisc-linux ;-)
Quoted 3 lines
* Upgrade DSL2 to an arse-kicking Quad-P4Xeon 3 point oh fuckin' six sweet gigahertz.
You won't see anymore lag.
Heh.
Quoted 6 lines
More seriously, I'm no CVS/SCM guru either, and I think that scheme *could* work,
assuming we slap ourselves with some tyrannosaurus' tails to get used to these CVS
habits.
Quoted 7 lines
My own concern is that I don't really see the need for a 4th depth level. Stop at
'parisc' branch and work on it seems fairly enough to me, i mean, do we really want
to be able to retrieve any '-paXX' subversion, which are usually more or less about
changing a dozen of lines in a couple of files in the worse case ?
Ah, grasshopper. This is just your lack of CVS knowledge ;-)
To quote from the CVS info docs:
Branches and revisions
======================
Ordinarily, a file's revision history is a linear series of
increments (*note Revision numbers::):
! 1.1 !----! 1.2 !----! 1.3 !----! 1.4 !----! 1.5 !
Each branch has a "branch number", consisting of an odd number of
period-separated decimal integers. The branch number is created by appending an integer to the revision number where the corresponding branch forked off. Having branch numbers allows more than one branch to be forked off from a certain revision.
All revisions on a branch have revision numbers formed by appending
an ordinal number to the branch number. The following figure illustrates branching with an example.
+-------------+
Branch 1.2.2.3.2 -> ! 1.2.2.3.2.1 !
/ +-------------+
/
/
+---------+ +---------+ +---------+
Branch 1.2.2 -> _! 1.2.2.1 !----! 1.2.2.2 !----! 1.2.2.3 !
/ +---------+ +---------+ +---------+
/
/
+-----+ +-----+ +-----+ +-----+ +-----+
! 1.1 !----! 1.2 !----! 1.3 !----! 1.4 !----! 1.5 ! <- The main trunk
+-----+ +-----+ +-----+ +-----+ +-----+
!
!
! +---------+ +---------+ +---------+
Branch 1.2.4 -> +---! 1.2.4.1 !----! 1.2.4.2 !----! 1.2.4.3 !
+---------+ +---------+ +---------+ The exact details of how the branch number is constructed is not
something you normally need to be concerned about, but here is how it
works: When CVS creates a branch number it picks the first unused even integer, starting with 2. So when you want to create a branch from revision 6.4 it will be numbered 6.4.2. All branch numbers ending in a zero (such as 6.4.0) are used internally by CVS (*note Magic branch numbers::). The branch 1.1.1 has a special meaning. *Note Tracking sources::.
... rereading that myself, I realise I made a mistake in my original exposition. It should have been:
1. -> linus
1.1 -> LINUS_260
1.2 -> LINUS_261
1.2.2 -> parisc_261
1.2.2.1 -> CVS261_PA1
1.2.2.2 -> CVS261_PA2
...
1.3 -> LINUS_262
1.3.2 -> parisc_262
1.3.2.1 -> CVS262_PA1
One other convention which I believe mang borrowed from mozilla is the practice of denoting branch tags in lower case and normal tags in upper case. I have preserved that here.
Quoted 3 lines
I also confess my lack of CVS knowledge, but I like the way gcc/gdb and other gnu
projects manage their CVS; that is having their trunk on HEAD, and
Hold it right there, buddy. After reading the documentation a few months ago, Paul and I decided that HEAD was the work of the devil, never made any sense and nobody was allowed to even say the word any more. 90% of the time people say HEAD, they mean trunk. What HEAD _actually_ does is take the latest revision of a file on _any_ branch. Not a smart idea when you have multiple independent branches.
Quoted 6 lines
branches
corresponding to releases. I guess this is related to that heavily-sucking-vendor-
branches-stuff-willy-hates, and I'm not even certain we could do the same on a kernel
development tree, so I won't ask more. Just wanted to express my view :)
Vendor branches are the aforementioned 1.1.1 branch. Again, let me quote from the manual:
If you modify a program to better fit your site, you probably want
to include your modifications when the next release of the program arrives. CVS can help you with this task.
In the terminology used in CVS, the supplier of the program is
called a "vendor". The unmodified distribution from the vendor is checked in on its own branch, the "vendor branch". CVS reserves branch 1.1.1 for this use.
In fact, the vendor branch is far too magic for us. It has the bizarre property that any new files you commit to it will appear on the trunk without being merged to the trunk. So we Don't Use Vendor Branches because it doesn't let us control what's going on properly.
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 20 lines · Matthew Wilcox
So how about this model...
1. -> linus
1.1 ->LINUS_260
1.2 ->LINUS_261
1.2.1 ->parisc_261
1.2.1.1 ->CVS261_PA1
1.2.1.2 ->CVS261_PA2
...
1.3 ->LINUS_262
1.3.1 ->parisc_262
1.3.1.1 ->CVS262_PA1OK, this model clearly fits CVS' needs much better. How about ours? Well, it sucks that you're always developing on a branch. It sucks for people who're used to doing 'cvs up -A' to get to the trunk, because they now get Linus instead of us. It also sucks that you stay on
parisc_261when you type "cvs up", so you have to explictly say "cvs up -rparisc_262".
Quoted 2 lines
However, it doesn't have the suckitude of vendor branches, and it allows us to reasonably use cvs diff -rlinus. Choose your suck.
The proposed model works OK. I used to use it for my voyager trees when I had them in CVS instead of BK. I think your assessment is correct:
it's the least of the evils.
James
Quoted 11 lines · Matthew Wilcox
According to the folk wisdom around CVS, long-lived branches make operations slower. Here's some evidence:
http://mail.gnu.org/archive/html/info-cvs/2001-08/msg00939.html
http://sources.redhat.com/ml/gdb/2003-03/msg00091.htmlQuoted 1 line
From this point of view, our CVS tree is practically pessimal. We have
two long-lived, regularly-updated branches (1.1.2. and 1.). This may explain why CVS is taking a long time to do simple stuff that used to not take very long at all.
[snip]
I don't want to start an SCM flamewar, but, since Thibaut already mentioned BK... :) Subversion (http://subversion.tigris.org/) has cheap branching and tagging (which are both actually just "cheap" copies.) Subversion does not slow down depending on the lifetime of the branches etc.
Of course Subversion is not yet 1.0, but there are at least some people playing with importing Linux kernel trees into Subversion repositories, and Connectiva uses Subversion for all the packages etc. in their distribution.
See http://subversion.tigris.org/svn-repositories.html for some of the people using it. The biggest repository on that list is Connectiva's
Quoted 1 line
7GB repository.
I don't know if anyone's tried Subversion on parisc Linux.
I am not involved in the Subversion project, except that I am subscribed to the developers list. I have not submitted any but the most trivial of patches and don't care if you decide to use it or stick with CVS or use something else.
Signature · 1 line
Michael Wood <[email protected]>
Quoted 2 lines
I don't want to start an SCM flamewar, but, since Thibaut already mentioned BK... :)
It's now clear french humour will never be understood by non-natives.
;-)
Matthieu
(French native)
Quoted 4 lines · Matthieu Delahaye
Quoted 2 lines
I don't want to start an SCM flamewar, but, since Thibaut already mentioned BK... :)
It's now clear french humour will never be understood by non-natives.
Some of it is (http://www.bretzelforbush.com/) for example 8)
Quoted 8 lines · Alan Cox
Quoted 4 lines · Matthieu Delahaye
Quoted 2 lines
I don't want to start an SCM flamewar, but, since Thibaut already mentioned BK... :)
It's now clear french humour will never be understood by non-natives.
Some of it is (http://www.bretzelforbush.com/) for example 8)
Bouh, the "bookmark this page" link doesn't work. Stupid french.
Le jeudi, 20 mar 2003, =E0 18:12 Europe/Paris, Alan Cox a =E9crit :
Quoted 8 lines · Matthieu Delahaye
Quoted 4 lines
Quoted 2 lines
I don't want to start an SCM flamewar, but, since Thibaut already mentioned BK... :)
It's now clear french humour will never be understood by non-natives.
Some of it is (http://www.bretzelforbush.com/) for example 8)
What would French humour be without American help? ;^)