CVS命令说明详解_第1页
CVS命令说明详解_第2页
CVS命令说明详解_第3页
CVS命令说明详解_第4页
CVS命令说明详解_第5页
已阅读5页,还剩14页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、CVS 环境变量设置在使用 CVS 命令时,最好先设置环境变量样能够简化输入的命令内容。CVSROOT,这CVSROOT=:pserver:userserver#port:/path/to/cvsrootpserver是接见方式,口令认证的意思,这是最常用的方式,其他还有gserver,kserver,extuser是 CVS 服务器的用户名,server是 CVS 服务器的名称也许IP 地址/path/to/cvsroot是你的 CVS 服务器的依照你的 CVS 服务CVSROOT目录,器设置做更正也许咨询管理员你能够把设置放到你的shell 的 profile里14.bash_profil

2、e,.profile 等)这样就不用每次敲一长串命令了15.SSH 加密口令和数据流的环境变量:CVSROOT=:ext:userserver#port:/path/to/cvsrootCVS_RSH=ssh 19.本质上没有CVSROOT也能够,你能够每次用 cvs-d:pserver:userserver#port:/path/to/cvsroot来接见,而且它将忽略 CVSROOT环境变量,也许你会笑我只有疯子才这么用,但是,cvs 能够把每次使用的命令参数放到一个文件中,所以在/.cvsrc 中加入 cvs-d:pserver:userserver#port:/path/to/cvsr

3、oot 即可,它最大的好处是更正了立刻见效,而且它的优先级高于到时候不要傻乎乎地来问我,我CVSROOT环境变量,1的环境变量真么不起作用了。26.CVS 库房初始化CVS 版本库的初始化。cvsinit 30.一个项目的首次导入cvsimport- mcommentsproject_namevendor_tagrelease_tag执行后:会将所有源文件及目录导入到/path/to/cvsroot/project_name 目录下vender_tag: 开发商标志release_tag: 36.版本宣布标志37.登录 CVS 服务器$cvs login2这时候 cvs 会问你口令,请把你在C

4、VS 服务器上的口令敲进去。若是没有任何错误信息,恭贺你,成功了!成功登录后将建立一个/.cvspass文件,保存你的口令, 今后就不用输入口令了,也能够把你的口令设置到CVSROOT 环境变量中。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查察该命令的选项注:若是你每次使用一些命令都带同样的参数的话,能够把它们放到update-c diff-c add-kb cvs-Qcvsglobal-optioncomandcomand-optionargumentsCVS 的平常使用/.cvsrc文件中去CVSa.使用流程checkout当当地没有workingcopy时使用b.staus 检查服务器上可否有新版本update若是有,则用 update同步文件做你自己的更正,并保证正确update看可否有人更正了你的文件若是有矛盾,合并矛盾mit提交你的更正,若是因为又有人提交更正而失败,回到e 步回到

6、 b 步导出库房中代码到当地工作目录cvscheckout-ddirmodule_namemodule_name能够暂时理解为目录名,它会在当地但前目录下建立 module_name目录,再把服务器上说有module_name目录下的文件 copy 到当地 module_name目录下。若是指定-d,则 copy到当地 dir 目录。3注意:第一次 checkout后,就不要再经过 cvscheckout来同步文件了,而是要进入该目录下进行详尽文件的版本同步(增加,更正,删除)操作。2)同步当地文件cvsupdatefilename将当地文件同步到最新的版本:不指定文件名,cvs将同步所有子目

7、录下的文件。最好每天开始工作前或将自己的工作导入到改的习惯,和VirvualSourceSafeCVS先同步后修库里前都要做一次,并养成不同样,CVS里没有文件锁定的看法,所有的矛盾是在commit以前解决,若是你修悔悟程中,有其他人更正并commitCVS到了库中,CVS会通知你文件矛盾。;latestrevisionnumberintherepository由你确认矛盾内容的弃取。也能够多人协商解决,更正完成后去掉文件中的矛盾标志conflict:多人更正同一文件的同一地域这就叫矛盾, 它必定由人来解决, CVS 不办理矛盾, 它可是告诉你存才矛盾提交当地更正后的文件到 CVS 库cvsc

8、ommit-mwritesomecommentsherefile_name注意:CVS的很多动作都是经过cvscommit改一个文件。在确认的前,还需要用户填写更正说明,进行最后确认并更正的,最好每次只修以帮助其他开发人员认识更正的原因。若是不用写-mcomments而直接确认cvscommitfile_name的话,cvs会自动调用系统缺省的文字编写器(一般是vi)要求你写入说明。更正某个版本说明:每次只确认一个文件到时候忘了指定文件名,把多个文件以同样说明CVScommit你更正某个文件某个版本的说明:cvsadmin-m1.3:writesomecommentsherefile_name

9、库里是一个很好的习惯,但难免有到 CVS 库里了,以下命令能够赞同查察状态cvsstatusfilename状态报告,近似这样:File:Status:Up-to-dateWorkingrevision:SomeDateRepository Sticky StickyTag: Date:revision:/home/cvsroot/cvstest/foo.c,v (none)(none)StickyOptions:(none)4这里最重要的就是Status栏,这里总合可能有四种状态:Up-to-date:表示你要到的文件是最新的LocallyModified :表示你以前修悔悟该文件,但还没有

10、提交,你的版本比库房里的新 NeedingPatch :表示有个哥们已经修悔悟该文件而且已经提交了!你的版本比库房里的旧.NeedsMerge:表示你以前更正该文件,但是恰好有个不识相的也更正了这个文件,而且还提交了! 查察更正历史和说明信息 cvslogfile_name增加文件和目录cvsaddnew_file_name cvsadd-kbnew_file_name cvsadddir_nameWordCVS 一般只办理文本文件,它会扩宏)并变换行结束符。 对于图片,展选项,否则有可能出现文件被破坏文档等非纯文本的项目,需要使用keyword(cvsadd-kb的情况尔后确认更正并说明cv

11、sci-mwritesomecommentsherenew_file_name删除文件将某个源文件物理删除后 cvsremovefile_name尔后确认更正并说明cvsci-mwritesomecommentsherefile_name注意:很多 cvs 命令都有缩写形式:commit=ci;update=up;checkout=co; remove=rm;删除空目录cvsupdateP更正文件名cvs 里没有 cvsmove或 cvsrename,因为这两个操作是先cvsremoveold_file_name,尔后 cvsaddnew_file_name实现的。5目录结构同步若是在你 ch

12、eckout cvsupdate-d后,有人增加了新的文件或目录,你需要把他们取出来放弃当地的更正(undo)若是更正来了当地文件,不想提交,想重新取新文件cvsupdate-Cfilename它会先把你的当地文件更名建议:大家把 checkout的文件缺省为readonly,把cvs-r增加到/.cvsrc文件中。这样,你每次更正一个文件前, 先 cvseditfilename,提交后文件又变成readonly, 若是你想放弃当地的更正,则cvsuneditfilename,它会 undo, 而且文件又变成readonly恢复到旧版本cvsupdatefilenames时当前版本号,注意序次

13、不要反了,记住要commit,为了保证是前版本号,最好先 lock注意:cvsupdatefilename一个叫的 stickytag若是不小心已经加成STICKTAG,这里的-r 不是版本号的意思,是给文件加了的话:用cvsupdate-A解决文件比较cvsdiff-cfilename cvsdiff-c-rfilename锁定与解锁文件为保证串行的更正文件 cvsadmin-lfilescvsadmin-ufilesCVS 宏/keywordCVS 缺省会对文件进行 keyword( 宏)代替,在文件中加入这些要点字是个优异的工作习惯。$Id$要点字是用文件名、版本、时间、作者及代码性质代

14、替,若是使用-l 选项取出,在 Exp 后边会加上登录取户的名称。6除了$Id$ 要点字,RCS 还支持下面常用的要点字:$Log$:你所供应的修改日志信息。$Author$:存入该版本的作者。$Locker$:该版本的加锁者$State$:该版本的状态Exp (试验版),Stabe(牢固版),Rel (刊行版).缺省是 Exp$Date$:该版本存入的时间,使用UTC 时间格式。$Revision$:该版本的版本号$RCSfile$:RCS文件名$Source$:RCS全路径名$Name$:取回该版本的符号名$Header$:相当于$Source$Revision$Date$Author$S

15、tate$Locker$的组合StickyTagtag 的作用是对多个连续变化的文件做一个快照来表示某一时辰的所有不同样内部版本的文件,一般是项目到必然阶段,能够给所有文件一致指定一个阶段里程碑版本号 ,需要的时候能够一次导出这些版本不一的文件 .标志的别的一个特别重要的作用是生成分支和合并分支。增加 Tagcvstagrelease_name(在模块当地拷贝目录下)release_name 要简洁而含义丰富,由字母开头,加字母,数字,下划线和连字号组成,特别是不能够含“.”b.取出 tag_name标志的文件cvscheckout-rrelease_namemodule_name重置 Tag

16、cvsupdate-A(在模块当地拷贝目录下)tag 表记的文件是历史文件,不能够更正,这样可在当地去除这个限制,让它和当前版本合并删除 Tagcvsrtagdtag_namecvsrtagFtag_namecvstagdtag_name(在模块当地拷贝目录下)cvstagFtag_name(在模块当地拷贝目录下)17)CVS 分支管理7CVS 能够将历史划分成多个独立,并行和互不影响的分支,并去更正历史标定里程碑cvstagrelease_1_0prj_dir_name开始一个新的里程碑cvscommit-r2标志所有文件开始进入的开发*这* 一动作,CVSNT 中无法执行。没有此部不影响分

17、支和合并。注意:CVS 里的 revsion和软件包的宣布版本能够没有直接的关系。 但所有文件使用和宣布版本一致的版本号比较有助于保护。建立分支在开发项目的版本的时候发现有问题,但又不敢用,则从先前标志的里程碑:release_1_0导出一个分支release_1_0_bugfixes:cvsrtag-b-rrelease_1_0release_1_0_bugfixesprj_dir_name-r 修饰的是 release_1_0,-b修饰的是release_1_0_bugfixes变成 4 位,今后每分一次支,版本号增加2 位,cvs 的版本号将分支并行开发一些人先在别的一个目录下导出rel

18、ease_1_0_bugfixes这个分支:解决中的紧急问题。cvscheckout-rrelease_1_0_bugfixes分支是能够更正的.解决 BUG 的开发人员更正该分支的代码,并将更正提交到分支上去。而其他人员仍旧在项目的骨干分支上开发。tag 分支在 release_1_0_bugfixes上修正错误后,标志一个的错误修正版本号。cvstagrelease_1_0_bugfixes_p1(在分支目录下执行)f.g.h.合并分支8若是认为这些错误更正在里也需要,也能够在的开发目录下合并release_1_0_bugfixes_p1中的更正到当前代码中:cvsupdate-jrele

19、ase_1_0_bugfixes_p1(在骨干目录下执行)这可是合并到当地拷贝中,尔后执行下执行)cvscommitm“mergerelease_1_0_bugfixes_p1”(在骨干目录再次合并分支若是又发现新的 bug, 我在分支已经更正了,并标定了release_1_0_bugfixes_p2,我们同样希望把它合并到骨干上来。cvsupdate-jrelease_1_0_bugfixes_p1-jrelease_1_0_bugfixes(在骨干目录下执行)它的意思是把release_1_0_bugfixes(分支)上从 release_1_0_bugfixes_p1(tag)开始变化了

20、的部分合并到当前文件(骨干)。也可用 f 步的方法,则以前合并的内容会重新合并注意:此时我们使用第e 步的结果教训:尽早频频的tag, 但同时不能够以致tag 泛滥,tag 在不同样的分支里能够同名h.锁定分支cvsadmin-lr_0_2 cvsadmin-l锁定 r_0_2分支锁定主分支i.设置缺省分支cvsadmin-br_0_2设定 r_0_2cvsadmin-b设定主分支为缺省分支删除历史记录若是历史文件过多,或确定有几个阶段的牢固版本,我们能够删除一些历史文件,以保证 cvs 的性能cvsadmin-orev1:rev2filename删除 rev1到 rev2的版本,含这两个版本

21、cvsadmin-orev1:rev2filename删除 rev1到 rev2的版本,不含这两个版本若是省略rev1, 表示删除本分支rev2以前的所有版本若是省略 rev2,表示删除本分支rev1此后的所有版本9cvsadmin-orevfilename删除 rev 这个版本的文件注意:有 tag 的版本不能够被删除,所以tag 很重要,而且只能删单个文件查察当地拷贝所在的分支cvsstatusvfiles其中会显示文件所在的分支信息。项目宣布导出不带 CVS 目录的源文件做开发的时候你可能注意到了,每个开发目录下,CVS 都创办了一个CVS/ 目录。里面有文件用于记录当前目录和CVS 库

22、之间的对应信息。但项目宣布的时候你一般不希望把文件目录还带着含有CVS 信息的 CVS 目录吧,这个一次性的导出过程使用 cvsexport命令, 但是 export只能针对一个TAG 也许日期导出,比方: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等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论