tests/testlib/map-hg-rev.sh
author Anton Shestakov <av6@dwimlabs.net>
Wed, 04 Mar 2020 16:05:28 +0100
branchstable
changeset 5147 83b607a9296d
parent 4966 4f3c87584a4a
permissions -rwxr-xr-x
compat: officialy drop compatibility with mercurial 4.5

#!/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