Well, I believe, I'm performing a very typical setup. There's a Mercurial repository here, a staging server there, and there's also a production server somewhere.
I'd like to build the repository on every commit and automatically deploy the update to the staging environment. I will manually trigger the production build to produce downloadable deployment packages sometimes.
Could you please point me to an article covering such basic things or finally write it for all the beginners -- the potential customers of your product 
It would be great to support the article with some examples on choosing the right build strategy, automatic versioning and the like.