Menghe

导航

源码管理 之 CVS

一、概述
CVS
Concurrent Versioning System)是目前比较流行与优秀的版本管理与控制工具。Version control systems are generally used as part of the software development cycle to track and co-ordinate source code changes among a team of developers.现在开源工程用的比较多,CVS本身是开源的,是微软的VSS功能类似的东西。

二、术语

1、           Repository-------仓库: CVS服务器的根目录。模块(Module)的集合

2、           Module------------模块:CVS服务器根目录下的第一级子目录。通常用于存放一个项目的所有文件

3、           Checkout----------检出: 通常指仓库中的一整个模块首次导出到本地。

4、           Import------------导入:通常指通过提交整个目录结构并创建一个新的模块。

5、           Release-------发行版本:整个产品的版本

6、           Revision--------修订版:单个文件的版本

7、           Tag---------------标签:在一个开发的特定期对一个文件集给定的符号名

8、           Update------------更新:从模块中下载其他人的修改过的文件。更新本地的拷贝。

9、           Commit------------提交:将自己修改过的文件提交到模块中。

三、经验 --摘自《CVS Best Practices》
    1、Stay in sync with the repository
    2、Do not work outside the sandbox
    3、Check−in Often
    4、After each release, the entire code base must be tagged with an identifier that can help in uniquely identifying the release.
    5、After each software release, once the CVS repository is tagged, a branch has to be immediately created.This branch will serve as the bug fix baseline for that release.
    6、After each release from a branch, the changes made to the branch should be merged with the trunk.
    7、Build Early and Build Often (BEBO)

posted on 2005-01-26 17:16  孟和  阅读(495)  评论(0编辑  收藏  举报