cvs log的几个选项说明(-b,-r HEAD,-n,-d)

以下是CVS log -b选项的结果

RCS file: /sourcecode/ex/sourcecode/core/kmasocketset.cpp,v
Working file: core/kmasocketset.cpp
head: 1.1
branch:
locks: strict
access list:
keyword substitution: kv
total revisions: 2;    selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/03/14 20:24:42;  author: xiao;  state: dead;  kopt: kv;  commitid: d5845f7e98844df;  filename: kmasocketset.cpp;
branches:  1.1.2;
file kmasocketset.cpp was initially added on branch b_jxex_dev_cn-00-002_item_20070208.
=============================================================================

以下是-r选项(-r HEAD)的结果

RCS file: /sourcecode/ex/sourcecode/core/kmasocketset.cpp,v
Working file: core/kmasocketset.cpp
head: 1.1
branch:
locks: strict
access list:
keyword substitution: kv
total revisions: 2;    selected revisions: 0
description:
=============================================================================

可以看到-b选项获取的别的分支新建的文件,-r选项只会获取主分支的文件,但是当添加-d选项时,使用-r选项和-b选项的效果一致!!!

-N 选项

RCS file: /sourcecode/Coding/core/src/kplayertong.cpp,v
Working file: kplayertong.cpp
head: 1.6  <--  该分支的最新版本号
branch:
locks: strict
access list:
symbolic names:
    dev_20070315_client: 1.5.20.1.4.5.0.2 <--  该分支的最新版本号
    tag_issue_v_20070313: 1.5.20.5        <--  该标签的所在版本号
    tag_issue_v_20070312: 1.5.20.1.4.5
    tag_issue_v_20070312: 1.6


你可能感兴趣的:(head)