blob: 3b8386522bcfb35b8432c4457994baafc59a3d29 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<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>Restoring deleted files from the repository</title>
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>Restoring deleted files from the repository</H1>
<P>The CVS plug-in allows you to delete files from the CVS repository. If you
delete a managed file and commit the deletion to the server, the file is deleted
from the current branch or version. Although the file has been deleted from
the current branch, the file and its previous revisions are actually still on
the server. The CVS plug-in provides a tool to help restore a file to your workspace
that has previously been deleted from the CVS repository:</p>
<ol>
<li>Select a folder managed by CVS and from the context menu select <strong>Team
&gt; Restore from Repository</strong>.</li>
<li>The repository will be searched for deleted files and the list will be shown
in a dialog.</li>
<li>Select a file in the left most pane to display the revisions of the file
that are available in the repository.</li>
<li>Select a revision in the right-most pane to view the contents in the bottom
text pane.</li>
<li>Check the revision that you would like to restore.</li>
<li>Click <strong>Finish</strong> once you have checked off a revision for each
file you wish to restore.</li>
<li>After restoring the file if you want to actually restore the file to the
current branch you have to add then commit the file back into the repository.
If the filename does not change, revision history will be maintained for the
restored file.</li>
</ol>
<p><img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br>
<a href="../concepts/concepts-26.htm">Team programming with CVS</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-114.htm">Committing</a>
</p>
</BODY>
</HTML>