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

📄 14-version control systems.mht

📁 这是著名的源码浏览工具(不仅仅浏览
💻 MHT
📖 第 1 页 / 共 5 页
字号:
From: <由 Windows Internet Explorer 7 保存>
Subject: Version Control Systems
Date: Thu, 15 May 2008 14:48:54 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0113_01C8B69A.CBFC5670"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198

This is a multi-part message in MIME format.

------=_NextPart_000_0113_01C8B69A.CBFC5670
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://sourcenav.sourceforge.net/online-docs/userguide/versctrl.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" =
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE>Version Control Systems</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3DISO-8859-1">
<META http-equiv=3DContent-Style-Type content=3Dtext/css>
<META content=3D"MSHTML 6.00.6000.16544" name=3DGENERATOR><LINK=20
href=3D"http://sourcenav.sourceforge.net/online-docs/cygnus2.css" =
type=3Dtext/css=20
charset=3DISO-8859-1 rel=3DSTYLESHEET></HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<TABLE class=3DTABLE cellPadding=3D1 width=3D100 align=3Dcenter =
border=3D0>
  <TBODY>
  <TR>
    <TD align=3Dmiddle>
      <P class=3DGotos><A=20
      =
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/index_ug.h=
tml">Contents</A>=20
      </P></TD>
    <TD align=3Dmiddle>
      <P class=3DGotos><A=20
      =
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/grep.html"=
>Previous</A></P></TD>
    <TD align=3Dmiddle>
      <P class=3DGotos><A=20
      =
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/debugger.h=
tml">Next</A></P></TD></TR></TBODY></TABLE>
<HR align=3Dcenter>
</DIV>
<TABLE>
  <TBODY>
  <TR>
    <TD></TD></TR></TBODY></TABLE>
<H1 class=3DChapterTitle><A name=3DpgfId-1002142></A><BR><A=20
name=3Dmarker-1002141></A><A name=3D35619></A>Version Control Systems
<DIV><IMG=20
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/versctrl-1.=
gif">=20
</DIV></H1>
<P class=3DBody><A name=3DpgfId-1002143></A>Source-Navigator provides a =
graphical=20
user interface to several external version control systems. =
Source-Navigator=20
allows you to manage <A name=3Dmarker-1002144></A>version control tasks =
on a=20
project level. With version control you can organize your development to =
manage=20
versions, version history, labels, and related documents.</P>
<P class=3DBody><A name=3DpgfId-1004575></A>Version control systems use =
locks to=20
prevent the same files from being modified by two developers =
simultaneously. If=20
a <A name=3Dmarker-1004578></A>lock is used while revising a file, no =
one can=20
modify the file until it is unlocked. Locking and unlocking can be =
controlled by=20
checking in or checking out versions.</P>
<P class=3DBody><A name=3DpgfId-1145350></A>For more information, see =
the <A=20
class=3DXRef=20
href=3D"http://sourcenav.sourceforge.net/online-docs/progref/versctrl.htm=
l#pgfId-996752">Integrating=20
with Version Control Systems</A> chapter in the <STRONG=20
class=3DBoldEmphasis>Programmer's Reference Guide</STRONG>.</P>
<H2 class=3DHeading1><A name=3DpgfId-996764></A><A =
name=3D33489></A>Using Version=20
Control</H2>
<P class=3DBody><A name=3DpgfId-996765></A>The following <A=20
name=3Dmarker-997375></A>version control systems have been integrated =
with=20
Source-Navigator: GNU Revision Control System (<A =
name=3Dmarker-997319></A>RCS),=20
Concurrent Versions System (<A name=3Dmarker-1004469></A>CVS), and the =
Source Code=20
Control System (<A name=3Dmarker-997335></A>SCCS). It has also been =
integrated=20
with Rational's <A name=3Dmarker-1004480></A>ClearCase version 3; other =
versions=20
may also work, although these have not been tested. When creating a =
project, you=20
must specify the correct version control system being used to manage the =
body of=20
source code you wish to analyze. You make your selection in the <SPAN=20
class=3DBold>Version Control</SPAN> tab of the <SPAN =
class=3DBold>Preferences</SPAN>=20
dialog (see <A class=3DXRef=20
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/versctrl.h=
tml#14496">Version=20
Control Preferences</A>).</P>
<P class=3DBody><A name=3DpgfId-1123617></A>To start <A=20
name=3Dmarker-1123613></A>version control, from the <SPAN =
class=3DBold>Tools</SPAN>=20
menu, select <SPAN class=3DBold>Revision Control </SPAN><EM =
class=3DArrow>-&gt;</EM>=20
<SPAN class=3DBold>Revision Control Editor</SPAN> (see <A class=3DXRef=20
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/versctrl.h=
tml#78460">Revision=20
Version Control Window</A>).</P>
<P class=3DFigureTitle><A name=3DpgfId-1136084></A><A =
name=3Dmarker-1136067></A><A=20
name=3D78460></A>Revision Version Control Window </P>
<DIV><IMG=20
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/versctrl-2.=
gif">=20
</DIV>
<H3 class=3DHeading2><A name=3DpgfId-1145351></A><A =
name=3D38024></A>Checking Out a=20
File</H3>
<P class=3DBody><A name=3DpgfId-1113084></A>In the <SPAN =
class=3DBold>Editor</SPAN>,=20
from the <SPAN class=3DBold>Tools</SPAN> menu select <SPAN =
class=3DBold>Revision=20
Control </SPAN><EM class=3DArrow>-&gt;</EM> <SPAN class=3DBold>Check =
Out</SPAN> to=20
<A name=3Dmarker-1127778></A>check out a file. Versions of a file can be =
checked=20
out for modification either locked or unlocked. Checking out with <SPAN=20
class=3DBold>With lock</SPAN> selected in the <SPAN class=3DBold>Check =
Out=20
</SPAN>dialog box prevents other users from checking out the same =
version in=20
write mode.</P>
<P class=3DFigureTitle><A name=3DpgfId-1137179></A>Check Out Dialog =
Box</P>
<DIV><IMG=20
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/versctrl-3.=
gif">=20
</DIV>
<H3 class=3DHeading2><A name=3DpgfId-997194></A><A =
name=3D11033></A>Checking In a=20
File</H3>
<P class=3DBody><A name=3DpgfId-997096></A>You can <A =
name=3Dmarker-996794></A>check=20
in all or selected project files into your version control system. When =
you=20
check in, you can enter descriptive text of the changes and a version =
number.=20
Using the left-mouse button, select one or more files to check in. With =
these=20
files highlighted, in the <SPAN class=3DBold>Revision Control =
Editor</SPAN>=20
window, from the <SPAN class=3DBold>Edit</SPAN> menu, select <SPAN=20
class=3DBold>Check In</SPAN>. The <SPAN class=3DBold>Check In</SPAN> =
dialog is=20
displayed. </P>
<P class=3DFigureTitle><A name=3DpgfId-1137187></A>Check In Dialog =
Box</P>
<DIV><IMG=20
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/versctrl-4.=
gif">=20
</DIV>
<P class=3DBody><A name=3DpgfId-1127322></A>If you check in with <SPAN=20
class=3DBold>With lock</SPAN> selected in this dialog box, others may =
not check=20
out the same file in write mode.</P>
<P class=3DBody><A name=3DpgfId-1004493></A>This is useful if you are =
continuously=20
working on a particular file, but wish to register checkpoints in your =
work=20
without giving other developers the opportunity to make modifications to =
that=20
file. </P>
<H3 class=3DHeading2><A name=3DpgfId-996805></A><A =
name=3D31808></A>Discarding Changes=20
to a File</H3>
<P class=3DBody><A name=3DpgfId-996807></A>To revert working files to =
the repository=20
version, in the <SPAN class=3DBold>Revision Control Editor</SPAN> =
window, from the=20
<SPAN class=3DBold>Edit</SPAN> menu, select <SPAN class=3DBold>Discard=20
Changes</SPAN><A name=3Dmarker-1145337></A>.</P>
<H3 class=3DHeading2><A name=3DpgfId-1004570></A><A =
name=3D12899></A>Show=20
Differences</H3>
<P class=3DBody><A name=3DpgfId-1004501></A>The <SPAN =
class=3DBold>Diff</SPAN> <A=20
name=3Dmarker-1004499></A>tool highlights differences between the =

⌨️ 快捷键说明

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