1 Using vcsrepo with Mercurial
2 ============================
4 To create a blank repository
5 ----------------------------
7 Define a `vcsrepo` without a `source` or `revision`:
9 vcsrepo { "/path/to/repo":
14 To clone/pull & update a repository
15 -----------------------------------
17 To get the default branch tip:
19 vcsrepo { "/path/to/repo":
22 source => "http://hg.example.com/myrepo"
25 For a specific changeset, use `revision`:
27 vcsrepo { "/path/to/repo":
30 source => "http://hg.example.com/myrepo",
31 revision => '21ea4598c962'
34 You can also set `revision` to a tag:
36 vcsrepo { "/path/to/repo":
39 source => "http://hg.example.com/myrepo",
45 vcsrepo { "/path/to/repo":
48 source => "http://hg.example.com/myrepo",
52 Specify an SSH identity key:
54 vcsrepo { "/path/to/repo":
57 source => "ssh://hg@hg.example.com/myrepo",
58 identity => "/home/user/.ssh/id_dsa,
61 For sources that use SSH (eg, `ssh://...`)
62 ------------------------------------------
64 Manage your SSH keys with Puppet and use `require` in your `vcsrepo`
65 to ensure they are present. For more information, see the `require`
66 metaparameter documentation[1].
71 For examples you can run, see `examples/hg/`
73 [1]: http://docs.puppetlabs.com/references/stable/metaparameter.html#require