title: How do I get the current mercurial revision without calling hg?
body: <p>In Git the current revision hash is stored in </p>
  
  <pre><code>.git/refs/heads/master
  </code></pre>
  
  <p>Is there an equivalent in Mercurial that doesn't require me making a call to hg log -l1? I know I can get the current branch in .hg/branch.</p>
  
  <p>This is to "display" the current hg hash on screen when browsing a web page.</p>