Mercurial

Auto-Update Mercurial production repository

Create a branch 'production' which contains all changes that should went onto the production server:

hg branch production && hg commit -m "Added new branch 'production'"

Clone repo to remote:

hg clone . ssh://user@host//path/to/repository

On the server, switch to production branch:

hg update production

Now add the following hook into the .hg/hgrc: