You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Robert P. J. Day" <rp...@crashcourse.ca> on 2008/09/13 14:03:48 UTC

the FAQ, and de-emphasizing the whole "project" thing

   from the svn FAQ (http://subversion.tigris.org/faq.html):

"Why does the entire repository share the same revision number? I want  
each of my projects to have their own revision numbers.

   "The global revision number attached to the repository as a whole  
is meaningless from a user's perspective. It's an internal mechanism  
that accomplishes the goal of the underlying schema design. It just so  
happens to be exposed so that the user's interface can sometimes be a  
little more convenient than always having to type obnoxiously long  
date/time strings.

   "The revision number is only relevant to the repository, and user  
convenience. It has no impact on any other factor of what you store in  
the repository. Repository revision number bumps aren't nearly useful  
enough to be an accurate indication of the real rate of change of a  
given code base. There are other more complicated ways to get a much  
better picture of a code-base's rate of change."

   i've whined about this before, but i don't think the above is  
really as informative as it could be since it doesn't really hammer  
home the idea that there is ***no such thing*** as a "project" in  
subversion, and i think that misunderstanding still has the potential  
to lead newbies badly astray.

   personally, i wish the word "project" was dropped entirely from any  
discussion of subversion since it can only confuse the issue.  but if  
it's going to be addressed in the FAQ, perhaps it should be stressed  
that "projects" are simply an interpretation placed on a repo's  
contents by the user, and they mean nothing beyond that.  that might  
clear up some beginner confusion.

rday



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


Re: the FAQ, and de-emphasizing the whole "project" thing

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
On Monday 15 September 2008, Karl Fogel wrote:
> I've rewritten the FAQ entry in r33079, based in part on this thread.
[...]

I like it.

Thanks!

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/

Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.

**************************************************************************************


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


Re: the FAQ, and de-emphasizing the whole "project" thing

Posted by Karl Fogel <kf...@red-bean.com>.
I've rewritten the FAQ entry in r33079, based in part on this thread.
The new text is below; it will also be live on the web site in an hour
or so.  If it's still unclear, suggestions welcome (real patch format is
the most efficient way to make suggestions, if you can).

---------------------------------------------------------------------------
   Why does the entire repository share the same revision number? I want
   each of my projects to have their own revision numbers.

   First, note that Subversion has no concept of projects. The
   repository just stores a versioned directory tree -- you may consider
   certain sub-trees to be projects, but Subversion doesn't treat them
   differently from any other sub-tree. Thus, the interpretation of what
   constitutes a project in the repository is left entirely up to the
   users. (This is similar to how branches and tags are conventions
   built on top of copies, instead of being basic concepts built into
   Subversion itself.)

   Each time you commit a change, the repository stores a new revision
   of that overall repository tree, and labels the new tree with a new
   revision number. Of course, most of the tree is the same as the
   revision before, except for the parts you changed.

   The new revision number is a sequential label that applies to the
   entire new tree, not just to the files and directories you touched in
   that revision. However, colloquially, a revision number is used to
   refer to the change committed in that revision; for example, "the
   change in r588" ("r588" is shorthand for "revision 588") really means
   "the difference between repository trees 587 and 588", or put another
   way, "the change made to tree 587 to produce tree 588".

   Thus, the advancing revision number marks the progress of the
   repository as a whole; you generally can't gauge the progress of a
   particular project within the repository by watching the revision
   number. Also, the revision number should not be used as the
   publicly-visible release number of a particular project in the
   repository. For that, you should devise some other mechanism of
   distinguishing releases.

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

Re: the FAQ, and de-emphasizing the whole "project" thing

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
See proposed changes below...

On Saturday 13 September 2008, Robert P. J. Day wrote:
>    from the svn FAQ (http://subversion.tigris.org/faq.html):
>
> "Why does the entire repository share the same revision number? I want
> each of my projects to have their own revision numbers.

+  "Firstly, Subversion has no concept of projects. Everything a repository
+ contains is a file tree. The interpretation of what constitutes a project
+ in that tree is completely left up to the user. This is similar to branching
+ and tagging, which are also conventions built upon Subversion instead of
+ rules built into Subversion itself.
+
+ Now, this means that the revision number attached to the repository will
+ always be a sequential number given to the repository as a whole.
+ The global revision number attached to the repository

> is meaningless from a user's perspective. It's an internal mechanism
> that accomplishes the goal of the underlying schema design. It just so
> happens to be exposed so that the user's interface can sometimes be a
> little more convenient than always having to type obnoxiously long
> date/time strings.

+ I you want to attach a version number to your project, use the
+ filesystem. This works in a way similar to branching and tagging
+ (maybe tagging is even just what you want!) and documented here
+ <link>TODO</link>.


>    "The revision number is only relevant to the repository, and user
> convenience. It has no impact on any other factor of what you store in
> the repository. Repository revision number bumps aren't nearly useful
> enough to be an accurate indication of the real rate of change of a
> given code base. There are other more complicated ways to get a much
> better picture of a code-base's rate of change."

I think this paragraph is way too technical and abstract. I would drop it 
completely.

> personally, i wish the word "project" was dropped entirely from any
> discussion of subversion since it can only confuse the issue.  but if
> it's going to be addressed in the FAQ, perhaps it should be stressed
> that "projects" are simply an interpretation placed on a repo's
> contents by the user, and they mean nothing beyond that.  that might
> clear up some beginner confusion.

I second that.

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/

Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.

**************************************************************************************


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


Re: the FAQ, and de-emphasizing the whole "project" thing

Posted by Brad Bruce <nj...@optonline.net>.
Robert P. J. Day wrote:
>   from the svn FAQ (http://subversion.tigris.org/faq.html):
>
> "Why does the entire repository share the same revision number? I want 
> each of my projects to have their own revision numbers.
>
>   "The global revision number attached to the repository as a whole is 
> meaningless from a user's perspective. It's an internal mechanism that 
> accomplishes the goal of the underlying schema design. It just so 
> happens to be exposed so that the user's interface can sometimes be a 
> little more convenient than always having to type obnoxiously long 
> date/time strings.
>
>   "The revision number is only relevant to the repository, and user 
> convenience. It has no impact on any other factor of what you store in 
> the repository. Repository revision number bumps aren't nearly useful 
> enough to be an accurate indication of the real rate of change of a 
> given code base. There are other more complicated ways to get a much 
> better picture of a code-base's rate of change."
>
>   i've whined about this before, but i don't think the above is really 
> as informative as it could be since it doesn't really hammer home the 
> idea that there is ***no such thing*** as a "project" in subversion, 
> and i think that misunderstanding still has the potential to lead 
> newbies badly astray.
>
>   personally, i wish the word "project" was dropped entirely from any 
> discussion of subversion since it can only confuse the issue.  but if 
> it's going to be addressed in the FAQ, perhaps it should be stressed 
> that "projects" are simply an interpretation placed on a repo's 
> contents by the user, and they mean nothing beyond that.  that might 
> clear up some beginner confusion.
>
> rday
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Many people are coming from a "SourceSafe world" where there can be many 
"projects" in a single repository.  Each project can be worked on 
separately and managed as its own entity.  The way I've migrated things 
from SourceSafe was to create a new repository for each folder or group 
of folders that should be managed as a single entity.  The only problem 
is now there are mutliple (200+) repositories for developers to access.  
I ended up writing a small front-end to give developers a SourceSafe ish 
interface when accessing repositories.

Brad

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

Re: the FAQ, and de-emphasizing the whole "project" thing

Posted by Purple Streak <mr...@googlemail.com>.
> "Robert P. J. Day" <rp...@crashcourse.ca> writes:
>>   i've whined about this before, but i don't think the above is
>> really as informative as it could be since it doesn't really hammer
>> home the idea that there is ***no such thing*** as a "project" in
>> subversion, and i think that misunderstanding still has the potential
>> to lead newbies badly astray.

We have several "projects" in subversion - and there's no more the
concept of "project" in any other SCM system. A project is just a top
level folder usually and people don't think of project version do
they?

What's different in SVN is that you have the global rev number (which
is actually really useful) whereas in a lot of other systems you talk
about individual file and directory versions. What might be confusing
is that you don't have a individual file version - or that a
particular version of a file and it's predecessor might be several
revisions apart i.e. version 2 of a file might be in revision 12345
whereas version 1 was back at rev 1234.  In practice of course this
doesn't matter but it is a different concept if you're moving from a
different system.

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

Re: the FAQ, and de-emphasizing the whole "project" thing

Posted by Karl Fogel <kf...@red-bean.com>.
"Robert P. J. Day" <rp...@crashcourse.ca> writes:
>   from the svn FAQ (http://subversion.tigris.org/faq.html):
>
> "Why does the entire repository share the same revision number? I want
> each of my projects to have their own revision numbers.
>
>   "The global revision number attached to the repository as a whole
> is meaningless from a user's perspective. It's an internal mechanism
> that accomplishes the goal of the underlying schema design. It just so
> happens to be exposed so that the user's interface can sometimes be a
> little more convenient than always having to type obnoxiously long
> date/time strings.
>
>   "The revision number is only relevant to the repository, and user
> convenience. It has no impact on any other factor of what you store in
> the repository. Repository revision number bumps aren't nearly useful
> enough to be an accurate indication of the real rate of change of a
> given code base. There are other more complicated ways to get a much
> better picture of a code-base's rate of change."
>
>   i've whined about this before, but i don't think the above is
> really as informative as it could be since it doesn't really hammer
> home the idea that there is ***no such thing*** as a "project" in
> subversion, and i think that misunderstanding still has the potential
> to lead newbies badly astray.
>
>   personally, i wish the word "project" was dropped entirely from any
> discussion of subversion since it can only confuse the issue.  but if
> it's going to be addressed in the FAQ, perhaps it should be stressed
> that "projects" are simply an interpretation placed on a repo's
> contents by the user, and they mean nothing beyond that.  that might
> clear up some beginner confusion.

We can't get rid of the word entirely, because many people already
arrive at the FAQ thinking in terms of projects, and even if we wanted
to teach them not to we'd still have to use the word just to start
talking about the problem.

But anyway, there are many ways in which it is useful to think in terms
of projects (e.g., top-level subdirs in your repository).  We just want
users to understand that Subversion isn't (currently) aware of those
projects.

A good solution would be a FAQ entry explaining the situation, and then
we could link the word "project" from all the other entries to that
entry.

Would you care to write it?

-Karl

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