CVS命令說明詳解_第1頁
CVS命令說明詳解_第2頁
CVS命令說明詳解_第3頁
CVS命令說明詳解_第4頁
CVS命令說明詳解_第5頁
已閱讀5頁,還剩14頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、CVS 環(huán)境變量設(shè)置在使用 CVS 命令時(shí),最好先設(shè)置環(huán)境變量樣能夠簡化輸入的命令內(nèi)容。CVSROOT,這CVSROOT=:pserver:userserver#port:/path/to/cvsrootpserver是接見方式,口令認(rèn)證的意思,這是最常用的方式,其他還有g(shù)server,kserver,extuser是 CVS 服務(wù)器的用戶名,server是 CVS 服務(wù)器的名稱也許IP 地址/path/to/cvsroot是你的 CVS 服務(wù)器的依照你的 CVS 服務(wù)CVSROOT目錄,器設(shè)置做更正也許咨詢管理員你能夠把設(shè)置放到你的shell 的 profile里14.bash_profil

2、e,.profile 等)這樣就不用每次敲一長串命令了15.SSH 加密口令和數(shù)據(jù)流的環(huán)境變量:CVSROOT=:ext:userserver#port:/path/to/cvsrootCVS_RSH=ssh 19.本質(zhì)上沒有CVSROOT也能夠,你能夠每次用 cvs-d:pserver:userserver#port:/path/to/cvsroot來接見,而且它將忽略 CVSROOT環(huán)境變量,也許你會(huì)笑我只有瘋子才這么用,但是,cvs 能夠把每次使用的命令參數(shù)放到一個(gè)文件中,所以在/.cvsrc 中加入 cvs-d:pserver:userserver#port:/path/to/cvsr

3、oot 即可,它最大的好處是更正了立刻見效,而且它的優(yōu)先級(jí)高于到時(shí)候不要傻乎乎地來問我,我CVSROOT環(huán)境變量,1的環(huán)境變量真么不起作用了。26.CVS 庫房初始化CVS 版本庫的初始化。cvsinit 30.一個(gè)項(xiàng)目的首次導(dǎo)入cvsimport- mcommentsproject_namevendor_tagrelease_tag執(zhí)行后:會(huì)將所有源文件及目錄導(dǎo)入到/path/to/cvsroot/project_name 目錄下vender_tag: 開發(fā)商標(biāo)志release_tag: 36.版本宣布標(biāo)志37.登錄 CVS 服務(wù)器$cvs login2這時(shí)候 cvs 會(huì)問你口令,請(qǐng)把你在C

4、VS 服務(wù)器上的口令敲進(jìn)去。若是沒有任何錯(cuò)誤信息,恭賀你,成功了!成功登錄后將建立一個(gè)/.cvspass文件,保存你的口令, 今后就不用輸入口令了,也能夠把你的口令設(shè)置到CVSROOT 環(huán)境變量中。CVSROOT=:pserver:user:passwordserver#port:/path/to/cvsrootcvs 命令格式cvsglobal_optscommandcommand_optscommand_argsGlobaloptions屬于左邊cvs 的,是全局的command_opts屬于左邊command 的,是局部的cvs-help-commands查察命令列表cvs-Hcomma

5、nd/cvs-helpcommand查察該命令的選項(xiàng)注:若是你每次使用一些命令都帶同樣的參數(shù)的話,能夠把它們放到update-c diff-c add-kb cvs-Qcvsglobal-optioncomandcomand-optionargumentsCVS 的平常使用/.cvsrc文件中去CVSa.使用流程checkout當(dāng)當(dāng)?shù)貨]有workingcopy時(shí)使用b.staus 檢查服務(wù)器上可否有新版本update若是有,則用 update同步文件做你自己的更正,并保證正確update看可否有人更正了你的文件若是有矛盾,合并矛盾mit提交你的更正,若是因?yàn)橛钟腥颂峤桓?,回到e 步回到

6、 b 步導(dǎo)出庫房中代碼到當(dāng)?shù)毓ぷ髂夸沜vscheckout-ddirmodule_namemodule_name能夠暫時(shí)理解為目錄名,它會(huì)在當(dāng)?shù)氐澳夸浵陆?module_name目錄,再把服務(wù)器上說有module_name目錄下的文件 copy 到當(dāng)?shù)?module_name目錄下。若是指定-d,則 copy到當(dāng)?shù)?dir 目錄。3注意:第一次 checkout后,就不要再經(jīng)過 cvscheckout來同步文件了,而是要進(jìn)入該目錄下進(jìn)行詳盡文件的版本同步(增加,更正,刪除)操作。2)同步當(dāng)?shù)匚募vsupdatefilename將當(dāng)?shù)匚募降阶钚碌陌姹荆翰恢付ㄎ募?,cvs將同步所有子目

7、錄下的文件。最好每天開始工作前或?qū)⒆约旱墓ぷ鲗?dǎo)入到改的習(xí)慣,和VirvualSourceSafeCVS先同步后修庫里前都要做一次,并養(yǎng)成不同樣,CVS里沒有文件鎖定的看法,所有的矛盾是在commit以前解決,若是你修悔悟程中,有其他人更正并commitCVS到了庫中,CVS會(huì)通知你文件矛盾。;latestrevisionnumberintherepository由你確認(rèn)矛盾內(nèi)容的棄取。也能夠多人協(xié)商解決,更正完成后去掉文件中的矛盾標(biāo)志conflict:多人更正同一文件的同一地域這就叫矛盾, 它必定由人來解決, CVS 不辦理矛盾, 它可是告訴你存才矛盾提交當(dāng)?shù)馗蟮奈募?CVS 庫cvsc

8、ommit-mwritesomecommentsherefile_name注意:CVS的很多動(dòng)作都是經(jīng)過cvscommit改一個(gè)文件。在確認(rèn)的前,還需要用戶填寫更正說明,進(jìn)行最后確認(rèn)并更正的,最好每次只修以幫助其他開發(fā)人員認(rèn)識(shí)更正的原因。若是不用寫-mcomments而直接確認(rèn)cvscommitfile_name的話,cvs會(huì)自動(dòng)調(diào)用系統(tǒng)缺省的文字編寫器(一般是vi)要求你寫入說明。更正某個(gè)版本說明:每次只確認(rèn)一個(gè)文件到時(shí)候忘了指定文件名,把多個(gè)文件以同樣說明CVScommit你更正某個(gè)文件某個(gè)版本的說明:cvsadmin-m1.3:writesomecommentsherefile_name

9、庫里是一個(gè)很好的習(xí)慣,但難免有到 CVS 庫里了,以下命令能夠贊同查察狀態(tài)cvsstatusfilename狀態(tài)報(bào)告,近似這樣:File:Status:Up-to-dateWorkingrevision:SomeDateRepository Sticky StickyTag: Date:revision:/home/cvsroot/cvstest/foo.c,v (none)(none)StickyOptions:(none)4這里最重要的就是Status欄,這里總合可能有四種狀態(tài):Up-to-date:表示你要到的文件是最新的LocallyModified :表示你以前修悔悟該文件,但還沒有

10、提交,你的版本比庫房里的新 NeedingPatch :表示有個(gè)哥們已經(jīng)修悔悟該文件而且已經(jīng)提交了!你的版本比庫房里的舊.NeedsMerge:表示你以前更正該文件,但是恰好有個(gè)不識(shí)相的也更正了這個(gè)文件,而且還提交了! 查察更正歷史和說明信息 cvslogfile_name增加文件和目錄cvsaddnew_file_name cvsadd-kbnew_file_name cvsadddir_nameWordCVS 一般只辦理文本文件,它會(huì)擴(kuò)宏)并變換行結(jié)束符。 對(duì)于圖片,展選項(xiàng),否則有可能出現(xiàn)文件被破壞文檔等非純文本的項(xiàng)目,需要使用keyword(cvsadd-kb的情況爾后確認(rèn)更正并說明cv

11、sci-mwritesomecommentsherenew_file_name刪除文件將某個(gè)源文件物理刪除后 cvsremovefile_name爾后確認(rèn)更正并說明cvsci-mwritesomecommentsherefile_name注意:很多 cvs 命令都有縮寫形式:commit=ci;update=up;checkout=co; remove=rm;刪除空目錄cvsupdateP更正文件名cvs 里沒有 cvsmove或 cvsrename,因?yàn)檫@兩個(gè)操作是先cvsremoveold_file_name,爾后 cvsaddnew_file_name實(shí)現(xiàn)的。5目錄結(jié)構(gòu)同步若是在你 ch

12、eckout cvsupdate-d后,有人增加了新的文件或目錄,你需要把他們?nèi)〕鰜矸艞壆?dāng)?shù)氐母?undo)若是更正來了當(dāng)?shù)匚募?,不想提交,想重新取新文件cvsupdate-Cfilename它會(huì)先把你的當(dāng)?shù)匚募ㄗh:大家把 checkout的文件缺省為readonly,把cvs-r增加到/.cvsrc文件中。這樣,你每次更正一個(gè)文件前, 先 cvseditfilename,提交后文件又變成readonly, 若是你想放棄當(dāng)?shù)氐母?,則cvsuneditfilename,它會(huì) undo, 而且文件又變成readonly恢復(fù)到舊版本cvsupdatefilenames時(shí)當(dāng)前版本號(hào),注意序次

13、不要反了,記住要commit,為了保證是前版本號(hào),最好先 lock注意:cvsupdatefilename一個(gè)叫的 stickytag若是不小心已經(jīng)加成STICKTAG,這里的-r 不是版本號(hào)的意思,是給文件加了的話:用cvsupdate-A解決文件比較cvsdiff-cfilename cvsdiff-c-rfilename鎖定與解鎖文件為保證串行的更正文件 cvsadmin-lfilescvsadmin-ufilesCVS 宏/keywordCVS 缺省會(huì)對(duì)文件進(jìn)行 keyword( 宏)代替,在文件中加入這些要點(diǎn)字是個(gè)優(yōu)異的工作習(xí)慣。$Id$要點(diǎn)字是用文件名、版本、時(shí)間、作者及代碼性質(zhì)代

14、替,若是使用-l 選項(xiàng)取出,在 Exp 后邊會(huì)加上登錄取戶的名稱。6除了$Id$ 要點(diǎn)字,RCS 還支持下面常用的要點(diǎn)字:$Log$:你所供應(yīng)的修改日志信息。$Author$:存入該版本的作者。$Locker$:該版本的加鎖者$State$:該版本的狀態(tài)Exp (試驗(yàn)版),Stabe(牢固版),Rel (刊行版).缺省是 Exp$Date$:該版本存入的時(shí)間,使用UTC 時(shí)間格式。$Revision$:該版本的版本號(hào)$RCSfile$:RCS文件名$Source$:RCS全路徑名$Name$:取回該版本的符號(hào)名$Header$:相當(dāng)于$Source$Revision$Date$Author$S

15、tate$Locker$的組合StickyTagtag 的作用是對(duì)多個(gè)連續(xù)變化的文件做一個(gè)快照來表示某一時(shí)辰的所有不同樣內(nèi)部版本的文件,一般是項(xiàng)目到必然階段,能夠給所有文件一致指定一個(gè)階段里程碑版本號(hào) ,需要的時(shí)候能夠一次導(dǎo)出這些版本不一的文件 .標(biāo)志的別的一個(gè)特別重要的作用是生成分支和合并分支。增加 Tagcvstagrelease_name(在模塊當(dāng)?shù)乜截惸夸浵?release_name 要簡潔而含義豐富,由字母開頭,加字母,數(shù)字,下劃線和連字號(hào)組成,特別是不能夠含“.”b.取出 tag_name標(biāo)志的文件cvscheckout-rrelease_namemodule_name重置 Tag

16、cvsupdate-A(在模塊當(dāng)?shù)乜截惸夸浵?tag 表記的文件是歷史文件,不能夠更正,這樣可在當(dāng)?shù)厝コ@個(gè)限制,讓它和當(dāng)前版本合并刪除 Tagcvsrtagdtag_namecvsrtagFtag_namecvstagdtag_name(在模塊當(dāng)?shù)乜截惸夸浵?cvstagFtag_name(在模塊當(dāng)?shù)乜截惸夸浵?17)CVS 分支管理7CVS 能夠?qū)v史劃分成多個(gè)獨(dú)立,并行和互不影響的分支,并去更正歷史標(biāo)定里程碑cvstagrelease_1_0prj_dir_name開始一個(gè)新的里程碑cvscommit-r2標(biāo)志所有文件開始進(jìn)入的開發(fā)*這* 一動(dòng)作,CVSNT 中無法執(zhí)行。沒有此部不影響分

17、支和合并。注意:CVS 里的 revsion和軟件包的宣布版本能夠沒有直接的關(guān)系。 但所有文件使用和宣布版本一致的版本號(hào)比較有助于保護(hù)。建立分支在開發(fā)項(xiàng)目的版本的時(shí)候發(fā)現(xiàn)有問題,但又不敢用,則從先前標(biāo)志的里程碑:release_1_0導(dǎo)出一個(gè)分支release_1_0_bugfixes:cvsrtag-b-rrelease_1_0release_1_0_bugfixesprj_dir_name-r 修飾的是 release_1_0,-b修飾的是release_1_0_bugfixes變成 4 位,今后每分一次支,版本號(hào)增加2 位,cvs 的版本號(hào)將分支并行開發(fā)一些人先在別的一個(gè)目錄下導(dǎo)出rel

18、ease_1_0_bugfixes這個(gè)分支:解決中的緊急問題。cvscheckout-rrelease_1_0_bugfixes分支是能夠更正的.解決 BUG 的開發(fā)人員更正該分支的代碼,并將更正提交到分支上去。而其他人員仍舊在項(xiàng)目的骨干分支上開發(fā)。tag 分支在 release_1_0_bugfixes上修正錯(cuò)誤后,標(biāo)志一個(gè)的錯(cuò)誤修正版本號(hào)。cvstagrelease_1_0_bugfixes_p1(在分支目錄下執(zhí)行)f.g.h.合并分支8若是認(rèn)為這些錯(cuò)誤更正在里也需要,也能夠在的開發(fā)目錄下合并release_1_0_bugfixes_p1中的更正到當(dāng)前代碼中:cvsupdate-jrele

19、ase_1_0_bugfixes_p1(在骨干目錄下執(zhí)行)這可是合并到當(dāng)?shù)乜截愔?爾后執(zhí)行下執(zhí)行)cvscommitm“mergerelease_1_0_bugfixes_p1”(在骨干目錄再次合并分支若是又發(fā)現(xiàn)新的 bug, 我在分支已經(jīng)更正了,并標(biāo)定了release_1_0_bugfixes_p2,我們同樣希望把它合并到骨干上來。cvsupdate-jrelease_1_0_bugfixes_p1-jrelease_1_0_bugfixes(在骨干目錄下執(zhí)行)它的意思是把release_1_0_bugfixes(分支)上從 release_1_0_bugfixes_p1(tag)開始變化了

20、的部分合并到當(dāng)前文件(骨干)。也可用 f 步的方法,則以前合并的內(nèi)容會(huì)重新合并注意:此時(shí)我們使用第e 步的結(jié)果教訓(xùn):盡早頻頻的tag, 但同時(shí)不能夠以致tag 泛濫,tag 在不同樣的分支里能夠同名h.鎖定分支cvsadmin-lr_0_2 cvsadmin-l鎖定 r_0_2分支鎖定主分支i.設(shè)置缺省分支cvsadmin-br_0_2設(shè)定 r_0_2cvsadmin-b設(shè)定主分支為缺省分支刪除歷史記錄若是歷史文件過多,或確定有幾個(gè)階段的牢固版本,我們能夠刪除一些歷史文件,以保證 cvs 的性能cvsadmin-orev1:rev2filename刪除 rev1到 rev2的版本,含這兩個(gè)版本

21、cvsadmin-orev1:rev2filename刪除 rev1到 rev2的版本,不含這兩個(gè)版本若是省略rev1, 表示刪除本分支rev2以前的所有版本若是省略 rev2,表示刪除本分支rev1此后的所有版本9cvsadmin-orevfilename刪除 rev 這個(gè)版本的文件注意:有 tag 的版本不能夠被刪除,所以tag 很重要,而且只能刪單個(gè)文件查察當(dāng)?shù)乜截愃诘姆种vsstatusvfiles其中會(huì)顯示文件所在的分支信息。項(xiàng)目宣布導(dǎo)出不帶 CVS 目錄的源文件做開發(fā)的時(shí)候你可能注意到了,每個(gè)開發(fā)目錄下,CVS 都創(chuàng)辦了一個(gè)CVS/ 目錄。里面有文件用于記錄當(dāng)前目錄和CVS 庫

22、之間的對(duì)應(yīng)信息。但項(xiàng)目宣布的時(shí)候你一般不希望把文件目錄還帶著含有CVS 信息的 CVS 目錄吧,這個(gè)一次性的導(dǎo)出過程使用 cvsexport命令, 但是 export只能針對(duì)一個(gè)TAG 也許日期導(dǎo)出,比方:cvsexport-rrelease1project_name cvsexport-D20021023project_name cvsexport-Dnowproject_name8.CVS 命令速查命令add作用Addanewfile/directorytotherepository Usage:cvsadd-krcs-kflag-mmessagefiles.-kUsercs-kflagt

23、oaddthefilewiththespecifiedkflag.-mUsemessageforthecreationlog.adminAdministrationfrontendforrcsUsage:cvsadminoptionsfiles.-lrevLockrevision(latestrevisiononbranch,latestrevisionontrunkifomitted).(DEPRECIATED)-mrev:msgReplacerevisionslogmessage.-orangePhysicallydelete(outdate)specifiedrangeofrevisio

24、ns: rev1:rev2Betweenrev1andrev2,includingrev1andrev2. rev1:rev2Betweenrev1andrev2,excludingrev1andrev2.rev:revandfollowingrevisionsonthesamebranch.rev:Afterrevonthesamebranch.:revrevandpreviousrevisionsonthesamebranch.:revBeforerevonthesamebranch.revJustrev.10-q-tfile-t-string-urevRunquietly.Getdesc

25、riptivetextfromfile(stdinifomitted). Setdescriptivetext.Unlocktherevision(latestrevisiononbranch, latestrevisionontrunkifomitted).annotateShowlastrevisionwhereeachlinewasmodified Usage:cvsannotate-lRf-rrev-Ddatefiles.-l-R-f-rrevLocaldirectoryonly,norecursion. Processdirectoriesrecursively. Useheadre

26、visioniftag/datenotfound.Annotatefileasofspecifiedrevision/tag.chacl-DdateAnnotatefileasofspecifieddate.ChangetheAccessControlListforadirectoryUsage:cvschacl-R-rbranch-uuser-jbranch-n-ppriority-mm essage-anoread|write|create|tag|control,.-dfileordirectory.-aaccessSetaccess-d-jbranch-mmessage-n-pprio

27、rity-rbranch-R-uuser checkoutCheckoutsourcesforeditingDeleteACL ApplywhenmergingfrombranchCustomerrormessage DonotinheritACLOverrideACLpriority ApplytosinglebranchRecursivelychangesubdirectories ApplytosingleuserUsage:cvscheckout-ANPRcflnps-rrev-Ddate-ddir-jrev1-jrev2-kkoptmodules.-A-N-P-R-c-f-l-n-p

28、-s-rrevResetanystickytags/date/kopts. Dontshortenmodulepathsif-dspecified. Pruneemptydirectories.Processdirectoriesrecursively. catthemoduledatabase.Forceaheadrevisionmatchiftag/datenotfound. Localdirectoryonly,notrecursive Donotrunmoduleprogram(ifany).Checkoutfilestostandardoutput(avoidsstickiness)

29、.Like-c,butincludemodulestatus.Checkoutrevisionortag.(implies-P)(issticky)-DdateCheckoutrevisionsasofdate.(implies-P)(issticky)-ddirCheckoutintodirinsteadofmodulename.-kkoptUseRCSkopt-koptiononcheckout.(issticky)-jrev-bMergeinchangesmadebetweencurrentrevisionandrev.Perform-jmergefrombranchpoint.11-m

30、Perform-jmergefromlastmergepoint(default).-IignMorefilestoignore(!toreset).-WspecWrappersspecificationline.-3Produce3-wayconflicts.-SSelectbetweenconflictingcasesensitivenames.-tUpdateusinglastcheckintime.chownChangetheownerofadirectoryUsage:cvschown-Ruserdirectory.-RChangeownerrecursivelycommitChec

31、kfilesintotherepositoryUsage:cvscommitDnRlf-Bbug|-bbug-mmsg|-Flogfilefiles.diff-bbugid-Bbugid-c-D-Flogfile-e-f-n-l-mmessage-RShowdifferencesbetweenrevisionsOnlycommitfilesrelatedtobug(implies-B). Markfileswithbug.Checkforvalideditsbeforecommitting.Assumeallfilesaremodified. Readthelogmessagefromfile

32、. Keepeditedfiles.Forcethefiletobecommitted;disablesrecursion.Donotrunthemoduleprogram(ifany).Localdirectoryonly(notrecursive). Logmessage.Processdirectoriesrecursively.Usage:cvsdiff-lNRrcsdiff-options-rrev1|-D files.date1-rrev2|-Ddate2-l-R-Dd1-Dd2-NLocaldirectoryonly,notrecursive Processdirectories

33、recursively.Diffrevisionfordateagainstworkingfile. Diffrev1/date1againstdate2.includediffsforaddedandremovedfiles.-rrev1Diffrevisionforrev1againstworkingfile.-rrev2Diffrev1/date1againstrev2.-ifdef=argeditGetreadytoeditawatchedfile Usage:cvsedit-cflRzfiles.Outputdiffsinifdefformat.-aSpecifywhataction

34、sfortemporarywatch,oneofedit,unedit, commit,all,none-bbugidBugtoassociatewithedit-cCheckthatworkingfilesareunedited-fForceeditifworkingfilesareedited(default)-lLocaldirectoryonly,notrecursive-mmessageSpecifyreasonforedit-RProcessdirectoriesrecursively(default)-wLockwholefile,notjustthisbranch12-xExc

35、lusiveedit(Stopotheruserseditingthisfile)-zCompressbaserevisioncopies editorsSeewhoiseditingawatchedfile Usage:cvseditors-aclRvfiles.-aShowallbranches.-cCheckwhethereditisvalidonfile.-lProcessthisdirectoryonly(notrecursive).-RProcessdirectoriesrecursively.-vShowbugs.exportExportsourcesfromCVSsimilar

36、tocheckoutUsage:cvsexport-NRfln-rrev-Ddate-ddir-kkoptmodule.-N-f-l-R-n-rrevDontshortenmodulepathsif-dspecified. Forceaheadrevisionmatchiftag/datenotfound. Localdirectoryonly,notrecursive Processdirectoriesrecursively(default).Donotrunmoduleprogram(ifany).Exportrevisionortag.-DdateExportrevisionsasof

37、date.-ddirExportintodirinsteadofmodulename.history-kkoptUseRCSkopt-koptiononcheckout.ShowrepositoryaccesshistoryUsage:cvshistory-report-flags-optionsargsfiles. Reports:-T-c-o-mProducereportonallTAGs Committed(Modified)files Checkedoutmodules Lookforspecifiedmodule(repeatable)-xTOEFWUCGMARExtractbyre

38、cordtype-eFlags:-a-l-w Options:-D-b-fEverything(sameas-x,butallrecordtypes)Allusers(Defaultisself) Lastmodified(committedormodifiedreport) WorkingdirectorymustmatchSincedate(Manyformats) Backtorecordwithstrinmodule/file/reposfield Specifiedfile(sameascommandline)(repeatable)-nInmodule(repeatable)-p-

39、r-t-u-zInrepository(repeatable) Sincerevortag(looksinsideRCSfiles!) Sincetagrecordplacedinhistoryfile(byanyone).Forusername(repeatable) Outputfortimezone(e.g.-z-0700)importImportsourcesintoCVSusingvendorbranches13init infologUsage:cvsimport-C-d-f-ksubst-Iign-mmsg-bbranch -Wspec-nrepositoryvendor-tag

40、release-tags.-CCreateCVSdirectorieswhileimporting.-dUsethefilesmodificationtimeasthetimeofimport.-fOverwriteexistingreleasetags.-ksubSetdefaultRCSkeywordsubstitutionmode.-IignMorefilestoignore(!toreset).-bbraVendorbranchid.-mmsgLogmessage.-WspecWrappersspecificationline.-nDontcreatevendorbranchorrel

41、easetags.CreateaCVSrepositoryifitdoesntexist Displayinformationaboutsupportedprotocols Usage:cvsinfo-c|-scvswrappers|cvsignore|-cDescribeclient(default)-sDescribeserverPrintouthistoryinformationforfilesUsage:cvslog-lRhtNbT -rrevisions-Bbugid -sstates-ddates-wloginsfiles.-BbugidOnlylistrevisionsrelat

42、edtobug.-bOnlylistrevisionsonthedefaultbranch.-ddatesSpecifydates(D1D2forrange,Dforlatestbefore).-hOnlyprintheader.-lLocaldirectoryonly,norecursion.-ROnlyprintnameofRCSfile.-rrevisionsSpecifyrevision(s)stolist.rev1:rev2Betweenrev1andrev2,includingrev1andrev2. rev1:rev2Betweenrev1andrev2,excludingrev

43、1andrev2. rev1:rev2Betweenrev1andrev2,excludingrev1.rev:revandfollowingrevisionsonthesamebranch.rev:Afterrevonthesamebranch.:revrevandpreviousrevisionsonthesamebranch.:revBeforerevonthesamebranch.revJustrev.branchAllrevisionsonthebranch.branch.Thelastrevisiononthebranch.-SSupressinformationwhennorev

44、isionsareselected.-sstatesOnlylistrevisionswithspecifiedstates.-TUselocaltimenotGMT.-tOnlyprintheaderanddescriptivetext.-NDonotlisttags.-wloginsOnlylistrevisionscheckedinbyspecifiedlogins.-Xcvscompatibleoutput.-xcvsntcompatibleoutput(default).14loginlogout lsPromptforpasswordforauthenticatingserverR

45、emovesentryin.cvspassforremoterepositoryListfilesintherepositoryUsage:cvsls-q-e-l-R-rrev-Ddate-tmodules.-Ddate-e-l-P-q-R-rrev-TShowfilesfromdate. DisplayinCVS/Entriesformat. Displayalldetails.Ignoreemptydirectories. Quieteroutput.Listrecursively.Showfileswithrevisionortag.Showtimeinlocaltimeinsteado

46、fGMT.lsaclListthedirectoriesAccessControlList Usage:cvslsacl-d-Rfileordirectory.-dShowdirectoriesonly-RRecurseuntosubdirectoriespasswdSettheuserspassword(Admin:Administerusers)Usage:cvspasswd-a-x-X-rreal_user-R-Ddomainusername-aAdduser-xDisableuser-XDeleteuser-rAliasusernametorealsystemuser-RRemovea

47、liastorealsystemuser-DUsedomainpasswordauthserver rannotateAuthenticationservermode Showlastrevisionwhereeachlineofmodulewasmodified Usage:cvsrannotate-lRf-rrev-Ddatefiles.-l-R-f-rrevLocaldirectoryonly,norecursion. Processdirectoriesrecursively. Useheadrevisioniftag/datenotfound.Annotatefileasofspec

48、ifiedrevision/tag.rdiff-DdateAnnotatefileasofspecifieddate.Createpatchformatdiffsbetweenreleases Usage:cvsrdiff-flR-c|-u-s|-t-V%d-rrev|-Ddate-rrev2|-Ddate2modules.-fForceaheadrevisionmatchiftag/datenotfound.-lLocaldirectoryonly,notrecursive-RProcessdirectoriesrecursively.-cContextdiffs(default)-uUni

49、diffformat.-sShortpatch-onelinerperfile.-tToptwodiffs-lastchangemadetothefile.-DdateDate.-rrevRevision-symbolicornumeric.15releaseIndicatethataModuleisnolongerinuse Usage:cvsrelease-d-f-edirectories.-dDeletethegivendirectory.-fDeletecontentsofdirectoriesincludingnon-cvsfiles.-eDeleteCVScontrolfilesi

50、nthegivendirectory(export).removeRemoveanentryfromtherepositoryUsage:cvsremove-flRfiles.-fDeletethefilebeforeremovingit.-lProcessthisdirectoryonly(notrecursive).-RProcessdirectoriesrecursively.renameRenameafileordirectoryUsage:cvsrename-q-qQuieteroutput.rlogPrintouthistoryinformationforamoduleUsage:

51、cvsrlog-lRhtNbT-rrevisions-Bbugid-ddates-sstates -wloginsfiles.-BbugidOnlylistrevisionsrelatedtobug.-bOnlylistrevisionsonthedefaultbranch.-ddatesSpecifydates(D1D2forrange,Dforlatestbefore).-hOnlyprintheader.-lLocaldirectoryonly,norecursion.-ROnlyprintnameofRCSfile.-rrevisionsSpecifyrevision(s)stolis

52、t.rev1:rev2Betweenrev1andrev2,includingrev1andrev2. rev1:rev2Betweenrev1andrev2,excludingrev1andrev2. rev1:rev2Betweenrev1andrev2,excludingrev1.rev:revandfollowingrevisionsonthesamebranch.rev:Afterrevonthesamebranch.:revrevandpreviousrevisionsonthesamebranch.:revBeforerevonthesamebranch.revJustrev.b

53、ranchAllrevisionsonthebranch.branch.Thelastrevisiononthebranch.-SSupressinformationwhennorevisionsareselected.-sstatesOnlylistrevisionswithspecifiedstates.-TUselocaltimenotGMT.-tOnlyprintheaderanddescriptivetext.-NDonotlisttags.-wloginsOnlylistrevisionscheckedinbyspecifiedlogins.-Xcvscompatibleoutpu

54、t.-xcvsntcompatibleoutput(default).rtagAddasymbolictagtoamoduleUsage:cvsrtag-abdFflnR-rrev|-Ddatetagmodules.-AMakealiasofexistingbranch(requires-r).16server-b-d-F-B-f-l-n-M-R-rrev-DServermodeMakethetagabranchtag,allowingconcurrentdevelopment.Deletethegiventag. Movetagifitalreadyexists.Allowmove/dele

55、teofbranchtag(notrecommended).Forceaheadrevisionmatchiftag/datenotfound. Localdirectoryonly,notrecursive.Noexecutionoftagprogram. Createfloatingbranch.Processdirectoriesrecursively.Existingrevision/tag.Existingdate.statusDisplaystatusinformationoncheckedoutfiles Usage:cvsstatus-vlRfiles.-vVerbosefor

56、mat;includestaginformationforthefile-lProcessthisdirectoryonly(notrecursive).-RProcessdirectoriesrecursively.-qDisplayaquicksummaryofeachfile(sendmoreincreasedterseness).-xcvsntcompatibleoutput(default).-Xcvscompatibleoutput.tagAddasymbolictagtocheckedoutversionoffiles Usage:cvstag-bcdFflR-rrev|-Dda

57、tetagfiles.-A-b-c-d-F-B-f-l-M-R-rrev-DMakealiasofexistingbranch(requires-r).Makethetagabranchtag,allowingconcurrentdevelopment.Checkthatworkingfilesareunmodified. Deletethegiventag.Movetagifitalreadyexists.Allowmove/deleteofbranchtag(notrecommended). Forceaheadrevisionmatchiftag/datenotfound.Localdi

58、rectoryonly,notrecursive.Createfloatingbranch. Processdirectoriesrecursively. Existingrevision/tag.Existingdate.uneditUndoaneditcommandUsage:cvsunedit-lR-r-uuser-w-bbug-mmessagefiles.-b-l-m-r-R-u-wUneditonlyfilesrelatedtobug Localdirectoryonly,notrecursive Specifyreasonforunedit Revertfileonly,dontunedit Processdirec

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論