Netbeans CVS-client的命令

时间:2011-06-07 03:21:05

标签: logging cvs

我正在尝试使用Netbeans的CVS-client.jar来查找特定项目的用户。

我尝试使用' cvs历史记录'命令,获取历史记录:

  1. 来自-m 模块
  2. -x 类型
  3. 按-a (所有用户)
  4. 在-D 日期
  5. 如,

        cvs history -a -x AMR -m DemoModule -D 06/07/2011
    

    但是此命令会产生以下错误消息:

    cvs [server aborted]: Only one report type allowed from: "-Tcomxe"

1 个答案:

答案 0 :(得分:0)

如果我正确理解了问题,下面将显示某个模块的结果,
只有某些记录类型的。关键是使用-n代替-m
-n似乎没有在我找到的所有CVS命令列表中列出。

     cvs history -x AMR -a -n DemoModule -D 06/07/2011


现在,由于OP和我得到错误的原因......来自我的版本手册页:

Usage: {cvs} history [-report] [-flags] [-options args] [files...]

Several options (shown above as '-report') control what kind of report is generated:

-c
    Report on each time commit was used (i.e., each time the repository was modified). 

-e
    Everything (all record types). Equivalent to specifying `-x' with all record types.
    Of course, `-e' will also include record types which are added in a future version of
    CVS; if you are writing a script which can only handle certain record types, you'll 
    want to specify `-x'.

-m module
    Report on a particular module. (You can meaningfully use `-m' more than once on the command line.) 

-o
    Report on checked-out modules. 

-T
    Report on all tags.

-x type
    Extract a particular set of record types type from the CVS history.
    The types are indicated by single letters, which you may specify in combination. 

        Certain commands have a single record type:

        F  release 
        O  checkout 
        E  export 
        T  rtag 

        One of four record types may result from an update:

        C  A merge was necessary but collisions were detected (requiring manual merging). 
        G  A merge was necessary and it succeeded. 
        U  A working file was copied from the repository. 
        W  The working copy of a file was deleted during update (because it was gone from the repository). 

        One of three record types results from commit:

        A  A file was added for the first time. 
        M  A file was modified. 
        R  A file was removed. 

问题是,我所看到的所有手册中都没有明确表达的是,你只能有一种报告类型。即上述主要选项中的一个(c,e,m,o,T,x),错误Only one report type allowed from: "-Tcomxe"(可能也是)明确说明。


P.S以下证明是CVS CLI / cvs历史的有用资源:

http://www.cs.utah.edu/dept/old/texinfo/cvs/cvs_18.html#SEC87

http://durak.org/sean/pubs/software/cvsbook/History-_002d_002d-A-Summary-Of-Repository-Activity.html

http://www.thathost.com/wincvs-howto/cvsdoc/cvs_16.html#SEC134

http://linuxdevcenter.com/pub/a/linux/2002/06/13/cvs.htm