NOTE: This module is currently experimental. Most of this code is copied from git.py with changes to handle hg.
Before using hg over ssh, make sure the remote host fingerprint already exists in ~/.ssh/known_hosts, and the remote host has this host's public key.
https://bitbucket.org/example_user/example_repo:
hg.latest:
- rev: tip
- target: /tmp/example_repo
Make sure the repository is cloned to the given directory and is up to date