I am developing a Django site and using hg for version control. I would like to insert the changeet identifier in the footer of a site, such as Stackoverflow and Bitbucket, in the footer. What is the best way to do this?
Do i need to use Mercurial api? Is there a way to get hg from the CLI to output only the revision identifier, so that I can capture this in the deployment scripts and just include plain text output in the template?
The methods you used will be appreciated. Thanks
source
share