SlideShare una empresa de Scribd logo
1 de 15
Concurrent Versions System
(CVS)
版本控制系统简介
车东 chedong@bigfoot.com
多人协同开发中的问题
同步的最新修改
文件的版本回溯
多人同时修改同一个文件产生的冲突
项目的分支开发
文件权限控制
正确的运行模式
用一个的代码管理库集中管理代码同步
版本库
user1
user2
user3
什么是 CVS
Concurrent Version System
并发版本控制系统
Unix 端服务器
http://www.cvshome.org
其他平台的客户端
http://www.wincvs.org/
FAQ
http://www.loria.fr/~molli/cvs-index.html
术语
CVSROOT: 代码库
Repository: 项目包
Version: 版本号
Branch: 版本分支
CVS 开始第一个项目
环境变量 $CVSROOT :
– bash: CVSROOT=/home/cvsroot ; export CVSROOT
– tcsh: setenv CVSROOT /home/cvsroot
CVSROOT 库初始化: cvs init
项目包首次导入: cvs import
– cvs import -m "write some comments here" project_name vender_tag release_tag
CVS 的使用命令
 cvs checkout proj_name 导出项目包
 cvs commit –m “write comments” file_name 提交更新
 cvs update –m “write comments” file_name 同步库
 cvs log file_name 查看修改日志
 cvs diff –r1.2 –r1.3 file_name 查看文件版本区别
 cvs add file_name 添加新文件到项目包
 cvs remove file_name 从项目包里删除文件
CVS 的使用流程
cvs checkout( 首次导出 ) cvs up( 同步代
码 )cvs commit( 提交修改 )cvs up
(同步代码) cvs commit( 提交修改 )
…..
恢复到一个旧的版本:
如果用 cvs update -r1.2 file.name
这个命令是给 file.name 加一个 STICK TAG : "1.2" ,虽然你的本意只是
想将它恢复到 1.2 版本
正确的恢复版本的方法是: cvs update -p -r1.2 file.name >file.name
如果不小心忘了 -p 加成 STICK TAG 的话:用 cvs update –A 解决
CVS 的远程用户认证
通过 SSH 远程登陆 CVS :

CVSROOT=:ext:$USER@test.server.address#port:/path/to/cvsroot CVS_RSH=ssh; export CVSROOT CVS_RSH
CVS 服务器端 SSH 端口不在缺省的 22
假设服务器端的 ssh 端口是 34567 ,客户端,创建 ssh_cvs
#!/usr/bin/sh
ssh -p 34567 $*
然后: chmod +x ssh_cvs
设置 CVS_RSH=ssh_cvs; export CVS_RSH
CVS Web 界面访问
方便文件版本跟踪
– http://www.freebsd.org/~fenner/cvsweb/
– 一个功能更丰富的版本
http://www.spaghetti-code.de/software/linux/cvsweb/
CVS vs VSS
CVS
update/commit
CVS 没有锁定机制
edit/unedit
VSS
get_lastest_version
/check_in
checkout/undo
checkout
通用的标记
$Header$
$Author$
$Date$
$Revision$
WinCVS
http://www.wincvs.org/
1. Cvs Folders->Macros folder->Change Root
2. Cvs Admin->Preferences
cvs server:
username@server.ip.address:/path/to/cvsroot
Authenitication:
passwd at cvs server
3. Cvs Admin->Login…
4. Cvs Admin->Checkout module…
CVSTrac
WEB 界面的
CVS 用户管理
CVS WEB 浏览
BUG TRACKING
Wiki 讨论版
相关资源
 CVS HOME :
http://www.cvshome.org
 CVS FAQ :
http://www.loria.fr/~molli/cvs-index.html
相关网站 :
http://directory.google.com/Top/Computers/Software/Configuration_Management/Too
ls/Concurrent_Versions_System/
 CVS 免费书 :
http://cvsbook.red-bean.com/
 CVS 命令的速查卡片:
http://www.refcards.com/about/cvs.html
 WinCVS:
http://www.wincvs.org
 CVSTrac: A Web-Based Bug And Patch-Set Tracking System For CVS
http://www.cvstrac.org
感谢

Más contenido relacionado

Similar a 香港六合彩 » SlideShare

六合彩,香港六合彩
六合彩,香港六合彩六合彩,香港六合彩
六合彩,香港六合彩mftldtw
 
Cvs tutorial
Cvs tutorialCvs tutorial
Cvs tutorialhtbegin
 
Mecurial hg
Mecurial hgMecurial hg
Mecurial hgiaiyang
 
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016Jeff Chu
 
Linux 系统应用与程序设计
Linux 系统应用与程序设计Linux 系统应用与程序设计
Linux 系统应用与程序设计yiditushe
 
Subversion
SubversionSubversion
Subversioni7Xh
 
Cfengine培训文档 刘天斯
Cfengine培训文档 刘天斯Cfengine培训文档 刘天斯
Cfengine培训文档 刘天斯liuts
 
那個 Code 不是我弄壞的! 持續整合與版本控制策略
那個 Code 不是我弄壞的!持續整合與版本控制策略那個 Code 不是我弄壞的!持續整合與版本控制策略
那個 Code 不是我弄壞的! 持續整合與版本控制策略Poy Chang
 
啟動 Laravel 與環境設定
啟動 Laravel 與環境設定啟動 Laravel 與環境設定
啟動 Laravel 與環境設定Shengyou Fan
 
Asp.net 5 新功能與變革
Asp.net 5 新功能與變革Asp.net 5 新功能與變革
Asp.net 5 新功能與變革Gelis Wu
 
Git前世今生
Git前世今生Git前世今生
Git前世今生hiyco
 
Linux commands ppt
Linux commands pptLinux commands ppt
Linux commands pptxiaotingting
 
Centos下安装apache + subversion
Centos下安装apache + subversionCentos下安装apache + subversion
Centos下安装apache + subversionYiwei Ma
 
Docker初识
Docker初识Docker初识
Docker初识hubugui
 
Continuous integration
Continuous integrationContinuous integration
Continuous integrationnetdbncku
 
全新 Windows Server 2019 容器技術 及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
全新 Windows Server 2019 容器技術及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)全新 Windows Server 2019 容器技術及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
全新 Windows Server 2019 容器技術 及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)Will Huang
 
Cent os 安装 subversion
Cent os 安装 subversionCent os 安装 subversion
Cent os 安装 subversionYUCHENG HU
 

Similar a 香港六合彩 » SlideShare (20)

六合彩,香港六合彩
六合彩,香港六合彩六合彩,香港六合彩
六合彩,香港六合彩
 
miywh
miywhmiywh
miywh
 
Cvs tutorial
Cvs tutorialCvs tutorial
Cvs tutorial
 
Mecurial hg
Mecurial hgMecurial hg
Mecurial hg
 
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
 
Linux 系统应用与程序设计
Linux 系统应用与程序设计Linux 系统应用与程序设计
Linux 系统应用与程序设计
 
Subversion
SubversionSubversion
Subversion
 
Cfengine培训文档 刘天斯
Cfengine培训文档 刘天斯Cfengine培训文档 刘天斯
Cfengine培训文档 刘天斯
 
Hyper V Final
Hyper  V FinalHyper  V Final
Hyper V Final
 
那個 Code 不是我弄壞的! 持續整合與版本控制策略
那個 Code 不是我弄壞的!持續整合與版本控制策略那個 Code 不是我弄壞的!持續整合與版本控制策略
那個 Code 不是我弄壞的! 持續整合與版本控制策略
 
啟動 Laravel 與環境設定
啟動 Laravel 與環境設定啟動 Laravel 與環境設定
啟動 Laravel 與環境設定
 
Asp.net 5 新功能與變革
Asp.net 5 新功能與變革Asp.net 5 新功能與變革
Asp.net 5 新功能與變革
 
Git前世今生
Git前世今生Git前世今生
Git前世今生
 
Linux commands ppt
Linux commands pptLinux commands ppt
Linux commands ppt
 
Centos下安装apache + subversion
Centos下安装apache + subversionCentos下安装apache + subversion
Centos下安装apache + subversion
 
Docker初识
Docker初识Docker初识
Docker初识
 
Xpp
XppXpp
Xpp
 
Continuous integration
Continuous integrationContinuous integration
Continuous integration
 
全新 Windows Server 2019 容器技術 及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
全新 Windows Server 2019 容器技術及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)全新 Windows Server 2019 容器技術及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
全新 Windows Server 2019 容器技術 及邁向與 Kubernetes 整合之路 (Windows Server 高峰會)
 
Cent os 安装 subversion
Cent os 安装 subversionCent os 安装 subversion
Cent os 安装 subversion
 

香港六合彩 » SlideShare