Solved

CVS question

Posted on 2004-10-18
6
241 Views
Last Modified: 2013-12-14
if two people are using a block within a module but in different projects, how should that
be handled in cvs?

would it be correct to commit that one block as a project, and then the two people can check it in and out as necessary?
0
Comment
Question by:danlarkin
  • 3
  • 3
6 Comments
 
LVL 21

Expert Comment

by:MogalManic
ID: 12337141
They should commit and syncronize daily.  This minimizes the chances that any changes they make would distrupt the other programmer.  These should be the rules:
  1) Only commit code that compiles. If the code doesn't comple yet, either comment it out or commit tomorrow morning
  2) Enter cvs checkin comments whenever possible (I try to enter comments always)
  3) Unit Test the code.  Look in to JUNIT(http://www.junit.org) for Java projects (There are unit test frameworks with simalar API's for other languages as well.  Google C++ Junit.)
  4) COMMUNICATE.  Each programmer should know what the other is doing.  (CVS stands for CONCURRENT Versioning System)  If it is a big project, have daily 5-minute status meetings where each programmer JUST describes how his sub-project is going.
  5) Syncronize BEFORE commiting.  It is the programmer that checks in LAST who is responsible for resolving conficts if two people edit the same line.
0
 

Author Comment

by:danlarkin
ID: 12340174
ok that sounds ok... but as regards the "mechanics" of the cvs...should the common block (which i presume will be a separate project from the two developers perspective) be checked in under each developers project?? Is this "double" version control the best way forward or is there a neater solution
0
 
LVL 21

Accepted Solution

by:
MogalManic earned 50 total points
ID: 12344197
Yes, I would set up 3 projects:

     Common Libraries:
          /            \
   Project A       Project B


The common library builds a JAR (or LIB if C/C++) as its results.
Project A and Probject B include the common library.

I would also recommend using a build tool such as ANT.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:danlarkin
ID: 12346178
ok this makes alot more sense.

I had initally thought i should have the following type structure....

Project A                Project B                    Common Library
         |                        |                                  
common library       common library              


thus my concern about a cvs project inside a cvs project......

So my only concern then is if someone checks out a projectA or projectB they also must *somehow* know to checkout the common library - is this situation  alright?


(I'm using c++, makefiles, and cvs)
0
 
LVL 21

Expert Comment

by:MogalManic
ID: 12346302
You could also just create a LIB project.

The common library project will build its results to the LIB project.

That way, if a user checks out Project A (he would also need to include the LIB project as well), he would NOT need to check out the source for common libraries unless he wants to.
0
 

Author Comment

by:danlarkin
ID: 12355358
aha of course - ok thanks very much for the help
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java  and programming certification ? 4 93
Device same like our heart 12 83
Advice in Xamarin 21 78
Embarcadero C++ builder XE10.1 Berlin TRegistry declaration 1 26
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This is about my first experience with programming Arduino.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question