zoukankan      html  css  js  c++  java
  • RCS版本控制

    RCS(Revision Control System)衍生品有两个
    SCCS(Source Code Control System)
    CVS(Concurrent Versions System)是一种GNU软件包,主要用于在多人开发环境下的源码的维护
    现在大多数软件开发公司都使用SVN替代了CVS

    1. ci check in

    # ci char.c
    
    char.c,v  <--  char.c
    new revision: 1.2; previous revision: 1.1
    enter log message, terminated with single '.' or end of file:
    >> include //备注信息
    >> .
    done

    2. co check out

    # co char.c //只读co
    
    char.c,v  -->  char.c
    revision 1.2
    done
    # co -l char.c //加锁co
    
    char.c,v  -->  char.c
    revision 1.3 (locked)
    done

    只有一个用户有写权限

    # co -l char.c //co失败
    
    char.c,v  -->  char.c
    co: char.c,v: Revision 1.3 is already locked by root.

    3. rlog
    查看文件的改动清单

    # rlog char.c
    
    RCS file: char.c,v
    Working file: char.c
    head: 1.3
    branch:
    locks: strict
    access list:
    symbolic names:
    keyword substitution: kv
    total revisions: 3; selected revisions: 3
    description:
    hello

    4. rcsdiff
    查看两个修订版之间的改动

    # rcsdiff -r1.1 -r1.2 char.c
    ===========================================================
    RCS file: char.c,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -r1.1 -r1.2
    1a2
    > #include <stdio.h> //改动
  • 相关阅读:
    Shell基础:变量类型 & 运算符
    Ant基础入门
    Shell基础:Shell和Mysql交互
    Linux配置邮箱发送(MUTT/MSMTPQ)
    [转载]JMeter源码导入Eclipse
    [转载]Badboy使用教程
    工程目录 Java/Web/Maven
    Maven基础知识和环境搭建
    Github/Eclipse管理Maven项目
    Git分支管理详解
  • 原文地址:https://www.cnblogs.com/zhangxuechao/p/11709706.html
Copyright © 2011-2022 走看看