如何在不签出回购的情况下获取提交的cvs日志

时间:2010-07-23 00:05:20

标签: cvs

我希望获得cvs中模块的所有提交列表,而不检查该模块。这可能吗?如果是这样的话?

我可以像这样使用cvs log命令:

cvs log > commitlog.txt

但这似乎只适用于已经检出的模块,我正在运行命令。我希望能够获取模块的日志而无需检查它。

1 个答案:

答案 0 :(得分:11)

是。有一个“rlog”命令。它类似于日志,除了不需要签出代码。换句话说,该命令是“远程”运行的。

  

rlog [options] [files ...]

Print out history information for modules. See log—Print out log
     

文件信息。

-b

    Only list revisions on the default branch. See log options.
-d dates

    Specify dates (d1<d2 for range, d for latest before). See log
     

选项。       -h

    Only print header. See log options.
-l

    Local; run only in current working directory. See Recursive
     

行为。       -N

    Do not list tags. See log options.
-R

    Only print name of RCS file. See log options.
-rrevs

    Only list revisions revs. See log options.
-s states

    Only list revisions with specified states. See log options.
-t

    Only print header and descriptive text. See log options.
-wlogins

    Only list revisions checked in by specified logins. See log options.