# HG changeset patch # User Zeger Van de Vannet # Date 1718562312 -7200 # Node ID 38b8060cdf243fcbdea1fe0041cb5206596227bd # Parent 31351132efcaf82ee7f3a89fe94cd632d57a5d07 feat: install recent mercurial diff -r 31351132efca -r 38b8060cdf24 .chezmoiscripts/run_onchange_after_17-install-mercurial.sh.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.chezmoiscripts/run_onchange_after_17-install-mercurial.sh.tmpl Sun Jun 16 20:25:12 2024 +0200 @@ -0,0 +1,19 @@ +{{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu")) -}} +{{ $version := "6.7.4" -}} +#!/usr/bin/env bash + +set -xe + +sudo apt install --yes clang rustc cargo python3-dev python3-setuptools python3-docutils python3-pip + +curl -fsSL https://foss.heptapod.net/mercurial/mercurial-devel/-/archive/{{ $version }}/mercurial-devel-{{ $version }}.tar.gz | tar xz -C /tmp +cd /tmp/mercurial-devel-{{ $version }} + +mkdir -p $HOME/mercurial + +$HOME/bin/mise exec python@3.10 -- pip install docutils +$HOME/bin/mise exec python@3.10 rust@1.74.0 -- make PURE=--rust install-home +$HOME/bin/mise exec python@3.10 rust@1.74.0 -- pip install --upgrade hg-evolve~=11.1.3 hg-git~=1.1.2 mercurial_keyring~=1.4.4 + + +{{ end }}