Subversion Recovery


Added by Ben Walding, last edited by Ben Walding on May 21, 2006

Labels

 
(None)

After the recent filesystem problems and subsequent restore onto alternative hardware; your subversion repository may have lost some revisions.

Here is the recommended process for recovering your missing revisions:

  1. Move your local working copy (./testproject) somewhere else (./testproject-old)
  2. Checkout your repository (./testproject)
  3. Compare the two source trees using diff and generating patches as required (you can also check your commit mail logs for patches).
  4. Reapply patches against your new working copy (./testproject)

It is essential that you move your working copy. While it is unlikely you can damage the Subversion repository, you will waste time working with this working copy as it will not be able to commit back into Subversion for any file that has changed.