title: What is the best way to include Mercurial changeset id (or revision) in a Django template?
body: <p>I am developing a Django site and am using hg for revision control. I would like to embed the changeset id to the footer of the site like Stackoverflow and Bitbucket do in their footer. What is the best way to accomplish this? </p>
  
  <p>Do I have to use the Mercurial api? Is there a way to get hg form the CLI to output just the revision id so I can capture that in my deployment scripts and just include the simple text output in the template? </p>
  
  <p>Methods you have used would be appreciated. Thanks</p>