Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms


mercurial (8) Versions 2.0.2

Installs mercurial

cookbook 'mercurial', '= 2.0.2'
cookbook 'mercurial', '= 2.0.2', :supermarket
knife cookbook site install mercurial
knife cookbook site download mercurial
Quality -%


Installs mercurial


Requires Chef 11 for use_inline_resources in LWRP.


  • python
  • build-essential


  • node["hg"]["install_method"] - method to install mercurial with, you can choose from "package" and "pip". default package.



Install mercurial to make sure it is available to check out code from mercurial repositories. method to install mercurial should be changed with node["hg"]["install_method"].


Installs mercurial from packages.

A package named "mercurial" must exist in the platform package management system.


Installs mercurial from pip.


This cookbook includes LWRPs for managing: mercurial



  • :clone - this will simply issue a clone of the repository at the revision specified (default tip).
  • :sync - this will issue a clone of the repository if there is nothing at the path specified, otherwise a pull and update will be issued to bring the directory up-to-date.

Parameter Attributes

  • path - Name attribute path where the repository is checked out.
  • repository - Repository to check out
  • reference - Reference in the repository
  • key - a private key on disk to use, for private repositories, must already exist.
  • owner - local user that the clone is run as
  • group - local group that the clone is run as
  • mode - permissions of the cloned repository


mercurial "/home/site/checkouts/www" do
  repository "ssh://"
  reference "tip"
  key "/home/site/.ssh/keyname"
  action :sync

License and Author

Mercurial LWRP originally by: Niall Napier

Author:: Joshua Timberman Author:: Mark Roddy Author:: Takeshi KOMIYA Author:: Guilhem Lettron

Copyright:: 2009-2013, Opscode, Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

No quality metric results found