2010-07-23 34 views
7

我想獲取CVS中所有模塊提交的列表,而無需檢查該模塊。這可能嗎?如果是這樣如何?如何在不檢出回購的情況下獲得提交的CVS日誌

我可以使用CVS日誌命令,像這樣:

cvs log > commitlog.txt 

但這似乎只對已簽出的是,我從指令艙工作。我希望能夠獲取模塊的日誌而不必檢查它。

回答

11

是的。有一個「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. 
+0

非常感謝!這個鏈接對我來說不起作用,所以我不得不做一些狩獵來獲得正確的語法。我已經標記了您的答案正確,但如果您更改答案以包含命令用法/示例和/或修復鏈接,我也會讚揚它。 :) – CodeAndCats 2010-07-23 01:29:54

+2

本, 奇數。該鏈接仍然適用於我。但如果它不能普遍使用,那麼包含這些選項肯定會更好。這樣做了。 – 2010-07-23 23:23:42

+1

rlog似乎追加,v的文件名,我因此在使用rlog時得到以下錯誤: 'rlog:taxi_rings/RCS/taxi_ring_128.ent,v:沒有這樣的文件或目錄' 我該如何避免這種行爲? – 2014-05-09 13:03:23

相關問題