Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions tools/docker/bootstrap-mercurial.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#!/bin/bash -ex
MERCURIAL_VERSION="5.2"
VERSION_CONTROL_TOOLS_REV="102106f53cb2"
MERCURIAL_VERSION="5.1"

apt-get update
apt-get install --no-install-recommends -y curl python-dev gcc openssh-client
apt-get install --no-install-recommends -y curl python2-minimal python-bz2file python-dev gcc openssh-client

pip install --disable-pip-version-check --quiet --no-cache-dir mercurial==$MERCURIAL_VERSION
# Setup mercurial from its own website, without install pip2 which has a lot of dependencies
curl -L https://www.mercurial-scm.org/release/mercurial-$MERCURIAL_VERSION.tar.gz | tar -C /opt -xvz
cd /opt/mercurial-$MERCURIAL_VERSION
python2 setup.py install

# Setup mercurial with needed extensions
hg clone -r $VERSION_CONTROL_TOOLS_REV https://hg.mozilla.org/hgcustom/version-control-tools /src/version-control-tools/
hg clone -u cc7be0763bb7cb36e64b55b8cec6998741709776 https://hg.mozilla.org/hgcustom/version-control-tools /src/version-control-tools/
mkdir -p /etc/mercurial/hgrc.d
ln -s /src/tools/docker/hgrc /etc/mercurial/hgrc.d/code-review.rc

Expand Down