title: Recovering from an unfortunate "svn copy"
body: <p>This afternoon, upon noticing a broken build and the fact that some files looked like very old versions (about 2 weeks old), I checked the svn log.  Apparently just this afternoon, 1 of the developers did an "svn copy" of a directory from an older revision to the same directory.  Thus it appears that the latest version "i.e. head" of all the files in that directory are really old, and all the history "i.e. log" is even older.</p>
  
  <p>However, I think I can recover by using another "svn copy" (i.e. the disease is the cure).  What I am considering doing is finding the revision where the bad "svn copy" was done (say rev 1234) , subtracting 1 (1233) and doing:</p>
  
  <pre><code>svn copy -r 1233 file://path/to/messed/up/dir file://path/to/messed/up/dir
  </code></pre>
  
  <p>That <em>should</em> restore the latest version, as well as get back all my history.  Am I right about this?</p>