[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Integrating CVS-like Revision Control in Application

Asked by harris_c in Miscellaneous Programming

Tags: cvs, sourceprogram

Hello Experts,

I am working on a project right now and it requires a 'cvs-like revision control' to be integrated into it.

PROJECT OVERVIEW:
1.  Client:  ColdFusion.
2.  Server: Oracle.
     2.1.   Sample Columns/Fields
              2.1.1.    ModuleName
              2.2.1.    SourceProgram
     2.2.   Sample Implementation/Data
--------------------------------------------------------------------
|ModuleName                      |    SourceProgram             |
|-------------------------------------------------------------------|
|SomeImportantModule       |   Imports System.IO        |
|                                           |   Public MyClass               |
|                                           |   {                                    |
|                                           |        return a+b                |
|                                           |   }                                    |
|----------------------------------|---------------------------------|
|AnotherImportantModule    |   #!/usr/lib/perl               |
|                                           |    ...                                  |
---------------------------------------------------------------------

3.  Data:    Text.

SCENARIO:
1.  Programmer A will change Update SourceProgram for the SomeImportantModule
     1.1.  Change "return a+b" to "return a*b"
             1.1.1.   Rev 1.0  will have return a+b
             1.1.2.   Rev 1.1  will have return a*b  
2.  Programmer A will save changes.
--------------------
3.  System will somehow be able to save the revisions made.
     3.1.  It is not advisable to save the whole module for every revision made.
             3.1.1.  Some are in thousands of lines of codes
             3.1.2.  Number of modules are in thousands and growing
     3.2.  I was thinking of storing the module in a CVS-like file where the header has all the changes made in every revision (saves disk space)
--------------------
4.  Programmer B wants to use Rev 1.0.  He must be able to pull out Rev 1.0 from the current Rev 2.0 (like CVS)
5.  No 2 people will be editing the same source code so concurrency is not a problem.


What I was thinking of is to have CF compare its current code against the database code, and create (or run a program) a CVS file based on the changes made and the output is saved back to the database.  If a user wants to view a code, it will somehow be able to parse it back (or run a program to do it) and display the latest revision.  If the user wants an older revision, then the system must be able to parse it.  When the user saves changes, CF will run the CVS file maker to create the CVS file and this is what is saved in the database.

Is there a better way to do this?

For this to work, I need information on CVS file parsers (something that could spit out a revision if specified) and CVS file maker (something that would require the *old* and *new* files as arguments and outputs the CVS file)

So the table should look like this:
----------------------------------------------------------------------
|ModuleName                      |    SourceProgram              |
|---------------------------------------------------------------------|
|SomeImportantModule       |  @d5 (cvs remarks here!) |
|                                           |                                         |
|                                           |   Imports System.IO         |
|                                           |   Public MyClass                |
|                                           |   {                                     |
|                                           |        return a+b                 |
|                                           |   }                                     |
|----------------------------------|----------------------------------|
|AnotherImportantModule    |   @a (cvs remarks here!)  |
|                                            |                                         |
|                                            |   #!/usr/lib/perl               |
|                                           |    ...                                  |
---------------------------------------------------------------------

Running the cvs program is not advisable since it creates a lot of different problems.





Thank you in advance!

hec",)

[+][-]02/18/04 08:40 AM, ID: 10394031Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Miscellaneous Programming
Tags: cvs, sourceprogram
Sign Up Now!
Solution Provided By: mvoelker
Participating Experts: 1
Solution Grade: A
 
[+][-]02/18/04 09:23 AM, ID: 10394522Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/19/04 06:19 AM, ID: 10402654Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/19/04 04:16 PM, ID: 10408220Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/19/04 04:32 PM, ID: 10408324Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/19/04 09:07 PM, ID: 10409649Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89