blob: 6d8dda7df6188f57fe732be5f34e3f1710b2eacd [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css">
<title>Comparing resources with repository versions</title>
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>Comparing resources with repository versions</H1>
<P>To compare Workbench resources with those in the repository:
</p>
<ol>
<li>Select a resource in one of the navigation views.</li>
<li>From the resource's pop-up menu, select one of the following menu items:
<ul>
<li><b>Compare With &gt; Latest From &lt;Branch Name&gt;</b> or <strong>&lt;Version&gt;</strong>-
Compare the Workbench resource with the latest resources currently committed
to the branch that the local project is shared with or if the local project
is checked out as a version then compare against the version. A compare
editor will be opened. This editor will display a tree of all resource
differences between the workspace resource and the latest resources in
the repository.</li>
<li><b>Compare With &gt; Another Branch or Version</b> - Compare the Workbench
resource with a specific version or branch that you select in the repository.
A compare editor will be opened. The editor will display a tree of all
resource differences between the workspace resource and the resources
in the specified version or branch.</li>
<li><b>Compare With &gt; History...</b> - (available only on a file) Compare
the Workbench file with another revision of the file. Based on your preference
settings, either the History view or a dialog will open. The History view (or dialog)
will contain a table of all available revisions
of the selected file. Selecting one of the revisions will show the differences
between the workspace revision and the selected revision. </li>
</ul>
</li>
</ol>
<p><em>Tip</em>: When comparing with a branch or version, you can specify a particular
date instead of a a version or branch tag. This can be done by right clicking
on the <strong>Dates</strong> category in the tag selection list and choosing
<strong>Add Date</strong>. A Date Tag dialog is displayed that allows you to
specify a date and optionally a time. After you click <strong>Ok</strong>, the
date tag will appear in the tag selection list.</p>
<P CLASS="Intro"><img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br>
<a href="../concepts/concepts-29.htm">Three way comparisons</a><br>
<a href="../concepts/concepts-30.htm">Synchronizing with a CVS repository</a></p>
<p>
<img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br>
<a href="tasks-115.htm">Synchronizing with the repository</a><br>
<a href="tasks-68b.htm">Setting preferences for comparing files</a><br>
</p>
<p><img border="0" src="../images/ngrelr.png" alt="Related references" >
<br><a href="../reference/ref-47.htm">CVS</a>
<br><a href="../reference/ref-25.htm">Compare editor</a>
</p>
</BODY>
</HTML>