summaryrefslogtreecommitdiff
path: root/lib/puppet/provider/vcsrepo
AgeCommit message (Collapse)Author
2014-07-14Merge pull request #187 from p4paul/masterHunter Haugen
Update Markdown with missing Perforce details.
2014-07-11(MODULES-660) Correct detached HEAD on latestHunter Haugen
Previously vcsrepo detached HEAD on checkout which caused further branch revisions to fail. This corrects the behavior, and works on git 1.7, 1.8, 1.9, and 2.0
2014-07-02Update Markdown with missing Perforce details.Paul Allen
Fix tabs/spaces in p4.rb
2014-06-30Merge pull request #171 from p4paul/masterHunter Haugen
Basic Perforce provider
2014-06-30Merge pull request #181 from jbussdieker/fix_resource_change_every_checkinAaron Stone
Fix issue with node changing every checkin
2014-06-30Fix issue with node changing every checkinJoshua B. Bussdieker
2014-06-24Sort keys on hash generate same test result.Paul Allen
Keys in the Client spec were processed out of order and failing tests.
2014-06-24Support streams and fix Marshal for 'p4 cstat'Paul Allen
2014-06-23Added support for basic authentication to hg providerStuart Whelan
Updated unit tests Updated hg readme and added examples
2014-06-23Add hostname to Digest for default client name.Paul Allen
2014-06-23Added support for p4config.Paul Allen
- Removed p4port, p4client, p4user to keep name space clean. - Changed notify to Puppet.debug - Updated markdown and examples - Updated unit tests
2014-06-20Detab to 2 spaces.Paul Allen
2014-06-20Add support for passing password/ticketPaul Allen
Uses param ‘p4passwd’ to set P4PASSWD environment to pass a valid ticket or password.
2014-06-20Basic Perforce providerPaul Allen
Supports sync and client create/update
2014-05-21Merge pull request #145 from hunner/fix_beaker_testsJohn Duarte
Update specs and fix FM-1361
2014-05-21Update specs and fix FM-1361Hunter Haugen
- Add install.rb for pre-suite - Add catches for failures/changes to manifest application - Correct root ssh key copying - Add sleeps for killing processes releasing ports - Fix FM-1361
2014-05-22Un-optional the non-optional commands.Daniele Sluijters
2014-05-15update to use -a and desired for hard resetTravis Fields
2014-05-15Fix detached head stateTravis Fields
2014-05-13Fix issue where force=>true was not destroying repository then recreatingTravis Fields
2014-04-03Merge pull request #120 from huandu/masterAshley Penney
Use `git rev-parse` to get tag canonical revision
2014-04-03Merge pull request #121 from fkrull/masterAshley Penney
Only add ssh options to commands that actually talk to the network.
2014-03-06Call set_ownership from the bzr providerAaron Stone
2014-02-16Only add ssh options to commands that actually talk to the network.Felix Krull
At least in Mercurial 2.8.2, --ssh seems to be a command-specific parameter in contrast to a global one. As a result, local commands error when seeing a --ssh parameter. This change passes --ssh only for commands that actually talk to the network ('incoming', 'pull' and 'clone' here).
2014-02-12use `git rev-parse` to get tag canonical revision.Huan Du
2014-01-24Merge pull request #105 from mcanevet/no_suAshley Penney
Don't 'su' if passed user is current user
2014-01-14fix svnlook behavior with plain directoriesjonoterc
svnlook expects a sub-directory within a repository called "format"; when using svnlook within a non-repository directory this causes it to throw an error. Adding a test for that directory before executing svnlook.
2014-01-11git: actually use the remote parameterMiguel Di Ciurcio Filho
When using the following sample, the provider does not use the value of remote when cloning a repository: vcsrepo {'/path/to/repo': ensure => 'present', provider => 'git', remote => 'test', source => 'git@somerepo:repo.git', } $ git remote origin This commit makes sure that the new repository has a remote with the supplied value. Closes #MODULES-430
2014-01-07Add the option to shallow clones with gitFelipe Reyes
The new parameter used to indicate that you want a shallow clone is `:depth`
2013-12-04Stripping git on_branch? return value; contains trailing newlineMike Gerwitz
This commit also contains git provider `latest' method formatting changes; squashed by request.
2013-12-02Using rev-parse to determine branch name of HEAD for on_branch? methodMike Gerwitz
2013-12-02origin/HEAD is not valid; use origin/master for latest when branch == 'master'Mike Gerwitz
2013-11-24Don't 'su' if passed user is current userMickaẽl Canévet
2013-08-28update git provider to handle checking out into an existing (empty) dirJohn Iacona
2013-08-12Fix svn provider to look for '^Revision:'.Michael Arnold
SVN provider should check for '^Revision:' and not '^Last Changed Rev:'. Addresses GitHub Issue #43.
2013-07-25Handle revision update without source switch.Aaron Stone
2013-07-25added support for changing upstream repo urlMatthew Slowe
added checks that the URL of the WC matches the URL from the manifest changed from using "update" to "switch"
2013-07-25The location of Puppet::Util[::Execution].withenv changed from Puppet 2.x to 3.xAaron Stone
2013-07-19Style adjustmentAaron Stone
2013-07-19Style and commentsAaron Stone
2013-07-19Add support for master svn repositories5Ub-Z3r0
Pull request related to issue #8331. I have added support into the exists? method (actually working_copy_exists?) for checking if the path is a master repository, using svnlook. It should be ok in most cases, since svnlook comes with svnadmin in nearly every distribution.
2013-07-19WhitespaceAaron Stone
2013-07-19Allow for setting the CVS_RSH environment variableMatthias Pigulla
2013-07-17Adding svn configuration parameter, and docszane
2013-07-17Use git checkout --force instead of short -f everywhereAaron Stone
2013-07-17Merge pull request #46 from Paulche/masterAaron Stone
Enable unlimited nesting for submodule updating
2013-07-17Merge pull request #78 from jhoblitt/git_provider_checkout_remote_refsAaron Stone
fix git provider checkout of a remote ref on an existing repo
2013-07-17fix git provider checkout of a remote ref on an existing repoJoshua Hoblitt
Per discussion of https://github.com/puppetlabs/puppetlabs-vcsrepo/issues/51 in the git channel on freenode, EugeneKay <eugene@kashpureff.org> stated that `git rev-parse` is not capable of inspecting remote refs but that `git ls-remote` is. This patch makes a second attempt to resolve the ref with `ls-remote` if `rev-parse` fails. The git provider also appears to support several type features that are not tagged under `has_features`. It's not clear if this is the best way to resolve this issue or if the provider should be refactored to work with different type features. Demonstration of the problem with changing refs (branches and tags) $ git --version git version 1.7.1 $ cat master.pp branch.pp vcsrepo { '/tmp/vcsrepo': ensure => present, provider => git, source => 'https://github.com/puppetlabs/puppetlabs-vcsrepo.git', revision => 'master', } vcsrepo { '/tmp/vcsrepo': ensure => present, provider => git, source => 'https://github.com/puppetlabs/puppetlabs-vcsrepo.git', revision => 'feature/cvs', } $ puppet apply --modulepath=`pwd`/.. master.pp Notice: /Stage[main]//Vcsrepo[/tmp/vcsrepo]/ensure: Creating repository from present Notice: /Stage[main]//Vcsrepo[/tmp/vcsrepo]/ensure: created Notice: Finished catalog run in 2.19 seconds $ puppet apply --modulepath=`pwd`/.. branch.pp Error: /Stage[main]//Vcsrepo[/tmp/vcsrepo]: Could not evaluate: Execution of '/usr/bin/git rev-parse feature/cvs' returned 128: fatal: ambiguous argument 'feature/cvs': unknown revision or path not in the working tree. Use '--' to separate paths from revisions feature/cvs Notice: Finished catalog run in 1.69 seconds
2013-07-17WhitespaceAaron Stone
2013-07-17Unlimited sudmodule's nesting for git providerPaul Chechetin