tests/testlib/map-hg-rev.sh
author Boris Feld <boris.feld@octobus.net>
Fri, 22 Nov 2019 18:56:42 +0100
changeset 5226 38d225efcea9
parent 4966 4f3c87584a4a
permissions -rwxr-xr-x
tutorial: compile the tutorial in rst so it can be included

#!/bin/sh
set -eu

case $1 in
    default)
        echo default
        ;;
    mercurial-*)
        exp=$(echo "$1" | cut -d- -f2 | sed 's#\.#\\.#g')
        echo 'max(tag("re:^'"$exp"'"))'
        ;;
    *)
        echo stable
        ;;
esac