info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a mean to set up cvs to check-out methods?


From: Mike Ayers
Subject: Re: Is there a mean to set up cvs to check-out methods?
Date: Mon, 29 Jul 2002 10:33:19 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530

Cristian Romanescu wrote:

I have a request from my boss, to find a mean to check-out from the
repository not files, but at method level. Is there a way to set-up cvs to
do that?

Ummm - does your boss realize that this is an unsound request? Allow me to elaborate. The file is the (almost universal) fundamental unit of compilation. As such, everything in a file is run through the compiler together, and is therefore subject to the scope of compilation (example: static variables in C are visible to all methods in the same file, but nowhere else). Therefore, checkout by method isn't a generally sound strategy, because you are not isolating the scope of the method.

Example: Programmer A checks out a method and makes a small but reasonable change. Programmer B checks out another method in the same file and makes a small but reasonable change. If these methods share file scoped data, then there is a possibility that these two changes, when merged (a checkout by method system will still have to merge, it will just do so automatically), will yield a broken file.

I suggest that you and your boss take a good look at what you are trying to achieve. There is probably a more reasonable solution, such as method-per-file code storage, to achieve your ends.


/|/|ike




reply via email to

[Prev in Thread] Current Thread [Next in Thread]