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
salt.states.hg.
latest
(name, rev=None, target=None, clean=False, user=None, identity=None, force=False, opts=False)¶Make sure the repository is cloned to the given directory and is up to date
Name of the user performing repository management operations
0.17.0 新版功能.
Private SSH key on the minion server for authentication (ssh://)
2015.5.0 新版功能.