⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 html3.html

📁 这是一个介绍 linux 编程知识的文章。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">cvs commit: Examining .</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">cvs commit: Examining docs</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">cvs commit: Examining docs/man</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">cvs commit: Examining docs/rfcs</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">cvs commit: Examining tools</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">Checking in AUTHORS;</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">/home/hahalee/CVS/hftpd/AUTHORS,v &lt;-- AUTHORS</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">new revision: 0.6; previous revision: 0.5</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">done</font></P>
<FONT FACE="宋体" LANG="ZH-CN" COLOR="#ffff00"><P>  关于并发提交冲突:任何用户可以随意checkout他们自己的工作拷贝,commit也是不受限制的。这样,当用户a和b分别checkout了1.2版的c.c,然后各自对c.c做了修改,a提交了他的修改,然后,当b提交的时候,冲突就产生了。</P>
<P>  这时候,cvs会做以下动作:</P>
<OL>

<LI>告诉用户b,对c.c的提交发生冲突</LI>
<LI>对用户b当前的c.c做备份文件.#c.c.1.2</LI>
<LI>试图合并a和b的修改,生成新的c.c</LI></OL>
<DIR>

<P> 然后,用户b应当修改c.c,去掉/合并冲突的行,并以版本1.4提交。</P></DIR>

<P>⑤ Diff</P>
<P>  可以用类似rcsdiff的方法用cvs生成patch,命令行语法也类似</P>
</FONT><P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">[hahalee@builder]$ cvs diff -u -r0.5 AUTHORS</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">Index: AUTHORS</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">===================================================================</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">RCS file: /home/hahalee/CVS/hftpd/AUTHORS,v</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">retrieving revision 0.5</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">retrieving revision 0.6</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">diff -u -r0.5 -r0.6</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">--- AUTHORS 2000/04/07 10:46:02 0.5</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">+++ AUTHORS 2000/04/07 14:05:57 0.6</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">@@ -1,3 +1,4 @@</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">+ah! let me in!</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">So then, who can't spell</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">Develloppopotamus?</font></P>
<P ALIGN="JUSTIFY"><FONT FACE="System" LANG="ZH-CN" COLOR="#ffff00">   </font><FONT FACE="Lucida Console" COLOR="#ffff00">Quite a lot of us.</font></P>
<FONT FACE="宋体" LANG="ZH-CN" COLOR="#ffff00"> 
<P>  还有一个rdiff,用来生成两个不同的release 之间的patch。</P>
<P>⑥ 其他操作</P>
<P>   cvs 的其他<a href="index.html"><img src="toc.gif" width="16" height="16" border="0"></a>操作还包括有:</P>
<P>   admin&#9;&#9;&#9;管理功能</P>
<P>   tag&#9;&#9;&#9;对某一版本做符号标记</P>
<P>   release&#9;&#9;取消checkout,删除工作目录(release在这里是“释放”的意思)</P>
<P>   add,remove&#9; 往repository里添加/删除文件</P>
<P>   history&#9;&#9;查看repository操作历史记录</P>
<P>⑦ CVS 的多平台特性以及C/S扩展</P>
<P>  cvs是多平台的,开发可以在多种平台比如,可以把linux上的CVS Repository通过samba export出来在Windows平台上做开发。现在很多软件包里包含有*NIX/Windows/MacOS等多平台支持代码,cvs的跨平台特性可提供最好的多平台开发支持。</P>
<P>  不过,cvs的操作是直接基于文件系统的,在需要大量远程协作的场合问题很多,远程的NFS mount效率太差,也会有安全问题。新版本的cvs自身内建了Client/Server支持,也可以利用Unix上传统的远程交互手段来通讯。</P>
<P>  1,通过rsh(也可用ssh替换)</P>
<P>  2,使用cvs自带的C/S用户认证:pserver(缺省端口2401)</P>
<P>  3,使用kerberos的gserver、kserver</P>
<P>&nbsp;</P>
<P><a href="html2.html"><img src="prev.gif" width="16" height="16" border="0"></a><a href="html4.html"><img src="next.gif" width="16" height="16" border="0"></a> 
  <a href="index.html"><img src="toc.gif" width="16" height="16" border="0"></a> 
</P>
</FONT> 
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -