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

Re: Unclear: CVS and Subversion repository difference.

From: Saulius Grazulis <grazulis_at_akl.lt>
Date: 2005-06-18 23:43:41 CEST

On Saturday 18 June 2005 23:39, Ben Collins-Sussman wrote:

> The latest point I'm making is that *even* if you have just one  
> project per repository, you still have multiple copies of the code in  
> different directories --

I hope I have understood you correctly -- you silently assume that there is
always a tag/ and branches/ in your repository, right?

Well, if you have tags/, branches/ and and trunk/ -- then, yes, each of the
dirs can contain the same file xyz.c

But if I do not use tags/ dir, I have just one copy of xyz.c in trunk/. And if
I don not want to experiment a lot with my project, I do not need branches.
And if I do experiment, then banches/ contain experimental versions of the
stuff; well, those experimental things have the same revs as the trunk -- so
now what? They belong to the same revision, thats a plain fact of nature ;).

> due to the way branches and tags work.  So a  
> single revision number *still* isn't enough to identify the "state"  
> of a project.

If there would be no tags/ dir, and branches are clearly of experimental
nature, then a single revision number unambiguously identifies the project at
some state -- and that project sits in trunk. That's how I use them at the
moment.

If there is tags/ dir, then, as I have said before, there exists a single
revision when tags/1.2.3 appeared (and hopefully did not change since that
time ;). In my understanding, creating tags/1.2.3/ by svn copy trunk
tags/1.2.3' is nothing else than marking this particular revision, right? And
hopefully tags/1.2.3 was just a copy of trunk, and not some modified checkin
(which you can never check easily -- a problem with using tags/X.Y.Z to mark
relases?)

In short, if I have one project per repository, a revision does conveniently
identify a state of the project for me.

Most important, in practice, it allows me to get _all_ files that existed at
that particular revision and look at them (thats why we use subversion, isn't
it)?

-- 
Saulius Gražulis
Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)
tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366

  • application/pgp-signature attachment: stored
Received on Sat Jun 18 23:09:54 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.