title: How to run "hg update" via mercurial incoming hook
body: <p>What is the correct way of running <code>hg update</code> in an incoming hook?</p>
  
  <p>Is it:</p>
  
  <pre><code>[hooks]
  incoming.foo = hg update
  </code></pre>
  
  <p>Or <a href="https://stackoverflow.com/questions/8972409/call-a-mercurial-command-hg-update-from-a-python-hook">this</a></p>
  
  <p>Or is there a more elegant way of doing this?</p>