Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Buildout recipe for cloning sources from a mercurial repository.

Project description

hgrecipe

A Buildout recipe for pulling a Mercurial repository.

This is a fork of the MercurialRecipe package with an additional feature.

On a version update or configuration tweak Buildout is greedy, sometimes uninstalling and reinstalling parts you don’t want it to. Being on the receiving end of Buildout trashing an existing repository because of it can be painful. This recipe adds an overwrite option which ensures that Buildout will leave those repositories safe and intact.

Example Recipe

[django-dbtemplates]
recipe = hgrecipe
repository = https://me@bitbucket.org/jezdez/django-dbtemplates
overwrite = true

[my-code]
recipe = hgrecipe
repository = https://me@bitbucket.org/dont-delete-this-unless-i-say-so

Recipe Options

repository
The url of the repository to clone.
location
The location to clone the repository to. Defaults to the Buildout parts directory.
newest
Whether to pull the latest version of the repository on a Buildout. Value of true or false. Defaults to true.
overwrite
Whether to overwrite an existing repository at the value of location and whether to remove repository when recipe is uninstalled. Defaults to false.

Sandbox Installation

Run the following commands to run a demo of this package.

$ hg clone http://bitbucket.org/prestontimmons/hgrecipe
$ cd hgrecipe
$ python bootstrap.py
$ bin/buildout
$ bin/python hgrecipe/tests.py

Project details


Release history Release notifications

This version

0.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hgrecipe, version 0.9
Filename, size File type Python version Upload date Hashes
Filename, size hgrecipe-0.9.linux-x86_64.exe (67.8 kB) File type Windows Installer Python version any Upload date Hashes View hashes
Filename, size hgrecipe-0.9.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page