title: hg - what to do when hg push times out
body: <p>UPDATE - I'm probably being daft, see my last update below.</p>
  
  <p>I just did a <code>hg push</code> and it timed out, and now when I try <code>hg push</code> again I get a message 'no changes found', however I can see in the target repo that all but a few of the changes didn't make it to the repo. How can I push my changes to that repo?</p>
  
  <p>The history behind this is I'm migrating from SVN to Mercurial (bitbucket). I've done the following: </p>
  
  <ul>
  <li>Used svnsync to get a local copy of the SVN repository. </li>
  <li>Created a new repo within bitbucket</li>
  <li>Cloned the repo to my local machine</li>
  <li>Done <code>svnadmin convert</code> from my local SVN repo to my local Hg repo</li>
  <li>Run <code>hg push</code> to push the changes to bitbucket</li>
  </ul>
  
  <p>The last command prompts me for HTTP authorisation, then says 'searching for changes', no output for >15 mins, then output 'abort: HTTP Error 504: Gateway Time-out'. Full process was:  </p>
  
  <pre><code>C:\dev\sandbox\svn_to_hg\dev_hg&gt;hg push
  http authorization required
  realm: Bitbucket.org HTTP
  user: my_login
  password:
  pushing to https://bitbucket.org/my_login/dev
  searching for changes
  abort: HTTP Error 504: Gateway Time-out
  
  C:\dev\sandbox\svn_to_hg\dev_hg&gt;hg push
  http authorization required
  realm: Bitbucket.org HTTP
  user: my_login
  password:
  pushing to https://bitbucket.org/my_login/dev
  searching for changes
  no changes found
  </code></pre>
  
  <p>It seems that because there are so many changes it's taking too long between HTTP auth and when it actually pushes the changes, or something like that, and probably if I set up SSH keys it'd not need to cache the HTTP authentication so it wouldn't time out. Any ideas if that's correct? Regardless, I still need to know how to push these changes that hg now thinks have already been pushed.</p>
  
  <p>In my bitbucket repository there are about 20 changesets from SVN from a few years ago, but there should be several thousand.</p>
  
  <p>UPDATE: </p>
  
  <p>hg out gives me this: </p>
  
  <pre><code>C:\dev\sandbox\svn_to_hg\dev_hg&gt;hg out
  http authorization required
  realm: Bitbucket.org HTTP
  user: my_login
  password:
  comparing with https://bitbucket.org/my_login/dev
  searching for changes
  no changes found
  </code></pre>
  
  <p>Looking at the repo using TortoiseHg repo browser shows there is tons of stuff there. </p>
  
  <p>UPDATE:</p>
  
  <p>Perhaps I'm being daft, now when I look at the repo within bitbucket it does seem that there are lots of changesets. But what timed out? Should I worry that all my changesets didn't make it to the server? </p>