cvs history,CVS中查詢目錄下所有檔案的提交記錄

來源:互聯網
上載者:User

標籤:style   color   使用   os   strong   檔案   

我們習慣用eclipse svn中查看一個目錄下,甚至整個工程下,所有的檔案的變更列表;操作為:右鍵工程 -> Team -> Show History。

最近在使用CVS,eclipse對應的cvs外掛程式(Eclipse CVS Client 1.2.1)卻不支援此運用,找了下其他一些cvs的用戶端(如WinCvs 2.0.2.4),也沒有找到相似的功能。(如果有知道的同學,望告知,感謝感謝!)

 

只能從命令列入手,遂記錄如下。

 

Kick start

 

先查詢一個檔案的提交記錄(這個功能我們可以通過CVS的大部分可視化用戶端實現):

查詢a.file的曆史提交記錄:

cvs history -ca a.file

 

查詢一個目錄下所有檔案的提交記錄:

查詢2014年6月1日(含)所有使用者在xxx/xxx/xxx目錄下的提交記錄

cvs history -ca -D 2014-06-01 xxx/xxx/xxx

 

如果不知道xxx/xxx/xxx路徑的組成規則,可執行一條全域的查詢語句,然後從中獲知路徑的組成規則。如查詢所有使用者在2014年6月1日(含)於整個Module下的提交記錄:

cvs history -ca -D 2014-06-01

 

Okay!

 

附:CVS history命令的協助文檔:

history: invalid option -- s
Usage: cvs history [-report] [-flags] [-options args] [files...]

Reports:
  -T Produce report on all TAGs
  -c Committed (Modified) files
  -o Checked out modules
  -m <module> Look for specified module (repeatable)
  -x [TOEFWUCGMAR] Extract by record type
  -e Everything (same as -x, but all record types)
Flags:
  -a All users (Default is self)
  -l Last modified (committed or modified report)
  -w Working directory must match
Options:
  -D <date> Since date (Many formats)
  -b <str> Back to record with str in module/file/repos field
  -f <file> Specified file (same as command line) (repeatable)
  -n <modulename> In module (repeatable)
  -p <repos> In repository (repeatable)
  -r <rev/tag> Since rev or tag (looks inside RCS files!)
  -t <tag> Since tag record placed in history file (by anyone).
  -u <user> For user name (repeatable)
  -z <tz> Output for time zone <tz> (e.g. -z -0700)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.