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

2002-07-29 Thread Cristian Romanescu

Hi!

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?
From my understanding of CVS, it cannot do that, because it merely works
with files and does not have the knowledge of sourcefiles...I had to ask,
maybe someone did have same problem with me...

BTWI hear that IBM developed such a tool, does anyone know which is?

Thanks in advance...



Best regards,
Cristian Romanescu
tel.:+40745133096
web:www.geocities.com/ext007

We programmers never die, we're just casted to void


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



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

2002-07-29 Thread Noel Yap

--- Cristian Romanescu 
 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?
 From my understanding of CVS, it cannot do that,
 because it merely works
 with files and does not have the knowledge of
 sourcefiles...I had to ask,
 maybe someone did have same problem with me...

CVS does work on a file level (aside from a diff
option I recently found, it knows nothing about the
contents of the files).  This shouldn't be a problem
since most compilers and people work on a file level. 
Why does your boss want to version methods?

 BTWI hear that IBM developed such a tool, does
 anyone know which is?

Visual Age did this.  AFAIK, IBM saw the error of its
ways and moved towards the more traditional file-based
versioning.

HTH,
Noel

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



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

2002-07-29 Thread Mike Ayers


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


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs