title: Mercurial subrepo and relative path
body: <p>I have a project, which I have a bitbucket repository for, and it is dependent on another project that I incorporate as a subrepo. Now, I don't have push access to the subrepository, nor do I want or need to--it's a pull-only relationship.</p>
  
  <p>I realize that when you push the main repository, it will try to push the subrepositories, as well. Since I cannot do that, I pulled a local copy of the dependent project, at the same level as the main repository's directory. In essence, I have the following layout:</p>
  
  <pre><code>Main/           ; pushes to https://mine.org/Main
    .hg/
    .hgsub
    Lib/
      SubRepo/    ; clone of Main/../SubRepo/
        .hg/
  
  SubRepo/        ; local copy of https://forbidden.org/SubRepo
    .hg/
  </code></pre>
  
  <p>The content of <code>.hgsub</code> is something like,</p>
  
  <pre><code>Lib/SubRepo = ../SubRepo
  </code></pre>
  
  <p>Then I cloned,</p>
  
  <pre><code>~/path/to/Main $ hg clone ../SubRepo/ Lib/SubRepo
  </code></pre>
  
  <p>So far, so good. The problem is, after I set this all up and committed the changes, when I try to push Main Mercurial will try to push SubRepo to <a href="https://mine.org/SubRepo" rel="nofollow">https://mine.org/SubRepo</a>, which does not exist, thereby failing the whole push operation.</p>
  
  <p>Is there something I'm missing?</p>