title: "Phantom" directories in an SVN repository
body: <p>I've somehow managed to get an SVN repository into a bad state. I've moved a directory and now I can't commit it in its new location.</p>
  
  <p>As far as <code>svn status</code> is concerned, the directory is unknown (the name of the directory is <code>type</code>).</p>
  
  <pre>
  $ svn status
  ?      type
  </pre>
  
  <p>When I try to add the directory, the server says it already exists.</p>
  
  <pre>
  $ svn add type
  svn: warning: 'type' is already under version control
  </pre>
  
  <p>If I try to update the directory, it's gone again.</p>
  
  <pre>
  $ svn update type
  svn: '.' is not under version control
  </pre>
  
  <p>If I try to commit it, the server complains that it's old parent directory no longer exists.</p>
  
  <pre>
  $ svn commit type -m "Moving type"
  svn: Commit failed (details follow):
  svn: '/prior/trunk/src/nyu/prior/cvc3/theorem_prover/expression' path not found
  </pre>
  
  <p>To add to the mystery, the contents of the directory are marked as modified.</p>
  
  <pre>
  $ svn status type
  A  +   type
  M  +   type/IntegerType.java
  M  +   type/BooleanType.java
  M  +   type/Type.java
  M  +   type/RationalRangeType.java
  M  +   type/RationalType.java
  M  +   type/IntegerRangeType.java
  </pre>
  
  <p>If I try to update from within the directory, I get this.</p>
  
  <pre>
  $ cd type
  $ svn update
  svn: Two top-level reports with no target
  </pre>
  
  <p>Committing from within the directory gives the same <code>path not found</code> error as above.</p>
  
  <p>What's going on and how do I fix it?</p>
  
  <p>EDIT: @Rob Oxspring caught me out: I got too aggressive moving things around in Eclipse.</p>
  
  <p>UPDATE: I'm accepting @Rob Oxspring's answer of "don't do that/just start over" and taking his advice. I'd still be interested if anybody could tell me: (a) what the above error messages <em>mean</em> precisely and (b) how to actually <em>fix</em> the problem.</p>