【问题标题】:How to get cvs log of commits without checking out repo如何在不签出 repo 的情况下获取 cvs 提交日志
【发布时间】:2015-10-19 22:10:24
【问题描述】:

我想在 cvs 中获取一个模块的所有提交列表,而不检查该模块。这可能吗?如果有怎么办?

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

cvs log > commitlog.txt

但这似乎只适用于我正在从中运行命令的已签出模块。我希望能够在无需检查的情况下获取模块的日志。

【问题讨论】:

    标签: cvs


    【解决方案1】:

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

    rlog [选项] [文件…]

    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.
    

    【讨论】:

    • 非常感谢!该链接对我不起作用,因此我不得不四处寻找正确的语法。我已经将您的答案标记为正确,但如果您更改答案以包含命令用法/示例和/或修复链接,我也会对其进行投票。 :)
    • 本,奇数。该链接仍然对我有用。但是,如果它不能普遍适用,那么包含选项肯定会更好。搞定了。
    • rlog 似乎附加了 ,v 文件名,因此在使用 rlog 时出现以下错误:rlog: taxi_rings/RCS/taxi_ring_128.ent,v: No such file or directory 如何避免这种行为?
    猜你喜欢
    • 2012-01-17
    • 1970-01-01
    • 2013-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-05
    • 1970-01-01
    相关资源
    最近更新 更多