title: How can I move my Mercurial repository root up one directory?
body: <p>I have a directory structure like:</p>
  
  <pre><code>project_root
    data/
    src/
      .hg/
      utils/
      math/
      graphics/
      ...
    README.txt
    LICENCE.txt
  </code></pre>
  
  <p>As you can see from the location of .hg/, only src/ is under Hg control. I'd like to move the repository root up from src/ to its parent directory project_root, so I can track data/, README.txt, and LICENCE.txt as well.</p>
  
  <p>A hacky way to do this would be to move everything down a directory rather than moving .hg up:</p>
  
  <ul>
  <li>Move the contents of src down to a new directory src/src/</li>
  <li>Move the contents of project_root (other than src/) down to src/</li>
  <li>Rename src to new_project_root</li>
  <li>Move new_project_root out of project_root, delete project_root</li>
  </ul>
  
  <p>Is there a better way? I can't be the first person with this problem, and the above solution seems overly involved.</p>