Working Bazaar support & docs
This commit is contained in:
parent
3ba51924b6
commit
67aa190396
38
README.BZR.markdown
Normal file
38
README.BZR.markdown
Normal file
@ -0,0 +1,38 @@
|
||||
Using vcsrepo with Bazaar
|
||||
=========================
|
||||
|
||||
To create a blank repository
|
||||
----------------------------
|
||||
|
||||
Define a `vcsrepo` without a `source` or `revision`:
|
||||
|
||||
vcsrepo { "/path/to/repo":
|
||||
ensure => present,
|
||||
provider => bzr
|
||||
}
|
||||
|
||||
To branch from an existing repository
|
||||
-------------------------------------:
|
||||
|
||||
Provide the `source` location:
|
||||
|
||||
vcsrepo { "/path/to/repo":
|
||||
ensure => present,
|
||||
provider => bzr,
|
||||
source => 'lp:myproj'
|
||||
}
|
||||
|
||||
For a specific revision, use `revision` with a valid revisionspec
|
||||
(see `bzr help revisionspec` for more information on formatting a revision):
|
||||
|
||||
vcsrepo { "/path/to/repo":
|
||||
ensure => present,
|
||||
provider => bzr,
|
||||
source => 'lp:myproj',
|
||||
revision => 'menesis@pov.lt-20100309191856-4wmfqzc803fj300x'
|
||||
}
|
||||
|
||||
More Examples
|
||||
-------------
|
||||
|
||||
For examples you can run, see `examples/bzr/`
|
6
examples/bzr/branch.pp
Normal file
6
examples/bzr/branch.pp
Normal file
@ -0,0 +1,6 @@
|
||||
vcsrepo { "/tmp/vcstest-bzr-branch":
|
||||
ensure => present,
|
||||
provider => bzr,
|
||||
source => 'lp:do',
|
||||
revision => '1312'
|
||||
}
|
4
examples/bzr/init_repo.pp
Normal file
4
examples/bzr/init_repo.pp
Normal file
@ -0,0 +1,4 @@
|
||||
vcsrepo { "/tmp/vcstest-bzr-init":
|
||||
ensure => present,
|
||||
provider => bzr
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user