Before and after version management-straightforward and casual version

Source: Internet
Author: User
Tags version control system
The version of csdn version control was a prompt response from a comrade ......

============

Rainbow company undertakes the project of "Vientiane City", which is implemented in three modules after analysis. Template A is a common part, Module B implements internal management, and Module C implements external browsing. As a result, the project header creates three directories on the service, respectively using a/B/C commands. It is encoded by two programmers, crazycoder and clientcoder.

Clientcoder creates the sessioncontrol file in directory A to control sessions. It can record user names, user passwords, and other related information. Crazycoder implements the functions of Module B based on this file. Everyone has had a good time for a week ......

At the beginning of the second week, the project header said that the user should add a user information: member account. This information is only used by crazycoder, so he modified sessioncontrol without notifying clientcoder.

Two days later, clientcoder began to be restless. Because he found that his program always fails to be compiled, and occasionally the session error is prompted. At last weekend, clientcoder started to get crazy. after learning that crazycoder modified sessioncontral, he shouted at him: TMD, why don't you tell me? I 've been doing nothing for four days. Crazycoder grinned: Sorry, buddy! As a result, sessioncontrol is unified.

After so many times, everyone was a little afraid of modifying sessioncontral. In this state, the program was finally released five weeks later, but the problem came again. Module A is okay, while Module B and Module C keep reporting errors. What's even more annoying is that rainbow company has been talking about it. If it cannot be modified within one week, you will be fine.

In the next three days, crazycoder and clientcoder are not eye-catching. Check the code in directory B and directory c respectively until it is found that both of them copy less than one file. These two files were completed on the seventh day of week 5th. God. After these modifications are merged and re-compiled, the system is finally working properly... However, crazycoder and clientcoder both went to the hospital for two days.

======================================

Crazycoder and clientcoder once again cooperated in the project. Of course, this time, they started to use the version management system rather than the "A/B/C" directory in the project header. Well, both of them are pretty cool. Even at the end of development, they can take time to have afternoon tea!

Originally, CVS brought benefits to the two people, making "undo" so simple. All programs can immediately return to the previous version. Well, it could be one day ago, one hour ago, or one minute ago. But what makes clientcoder even more excited is that the Merge function has brought too many benefits to him, so that he does not have to worry about crazycoder modifying the Self-maintained code at will. Aha, clientcoder secretly sneered.

Clientcoder knows that crazycoder often writes "esoteric" code without comments. Cvs can help clientcoder find out when the Code was written and guess the code function based on the progress. Why do you want to guess, aha, because crazycoder occasionally went to the bar for a drink, and then went to the nurse mm in the hospital the next day.

Clientcoder knows that the biggest benefit of CVS is that different versions can be released at the same time. Using the tag function, clientcoder can compile the version generated at any time. For example, Wanxiang city released a new version in April 12 and then released it again in May 13. Users suddenly said that before December 31, May 13, they found that the consumption query had no printing function, and after December 31, May 13, the output was not a consumption record.

Aha, clientcoder immediately went back and re-compiled the two versions and tested them separately. It was found that the report interface was not implemented in the April 12 version, while in the May 13 version, the interface was mounted to the overdue report. Clientcoder quickly modified and released version 5.14. The problem was solved. But the next day, crazycoder received a reward, fined 3 cans of beer, and paid for it.

======================================

After that, clientcoder felt that CVS was not only a version control system, but also a source code management system.
CVS also brings him something else, such as the newly bought t60.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.