title: Can't push to mercurial (bitbucket) repo 'waiting for lock on repository'
body: <p>I'm currently getting this message whenever I try to push to one of our repositories: </p>
  
  <p><code>waiting for lock on repository &lt;repo_path&gt; held by '&lt;hostname&gt;:4228'</code></p>
  
  <p>The hostname is the PC I'm trying to push from, and the port number changes each time I try.</p>
  
  <p>I've searched and found <a href="https://stackoverflow.com/q/12865/324381">this answer</a> which suggests deleting the file .hg/store/lock but this file is not present on my computer.</p>
  
  <p>Interestingly I see the lock file appear when I run the command, and see it removed again when I cancel the operation with ctrl-C.  It's almost like the hg process doesn't recognise that it is its own lock.</p>
  
  <p>Any ideas?</p>