blob: d2a02563b9a5e0c0af12f731590a3302e38ad7d6 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<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 it's 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>The repository will be searched for deleted files and the list will be shown
in a dialog.
<li>Select a file in the left most pane to display the revisions of the file
that are available in the repository.
<li>Select a revision in the right-most pane to view the contents in the bottom
text pane.
<li>Check the revision that you would like to restore.
<li>Click <strong>Finish</strong> once you have checked off a revision for each
file you wish to restore.
<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.
</ol>
<p><img border="0" src="../images/ngrelc.gif" alt="Related concepts" width="159" height="27"><br>
<a href="../concepts/concepts-26.htm">Team programming with CVS</a>
</p>
<p><img border="0" src="../images/ngrelt.gif" alt="Related tasks" width="159" height="27"><br>
<a href="tasks-115.htm">Synchronizing with the repository</a><br>
<a href="tasks-114.htm">Committing</a>
</p>
<p>&nbsp;<br>
<a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright IBM Corporation and others 2000, 2003" border="0" width="324" height="14"></a>
</p>
</BODY>
</HTML>