#!/usr/bin/env bash

# Install Mercurial if it appears to be required.
if [[ -f "requirements.txt" ]]; then
	if (grep -Fiq "hg+" requirements.txt) then
		/app/.heroku/python/bin/pip install  mercurial | cleanup | indent
	fi
fi

