#!/bin/sh

set -e

apt update -q
# do not purge mercurial-common, it is a good thing to have /etc/mercurial
apt-get -qy remove mercurial mercurial-common || /bin/true
apt-get -qy --no-install-recommends install python3-pip
pip install --break-system-packages -r python/hg-rust.req

hg debuginstall