tests/testlib/map-hg-rev.sh
author Anton Shestakov <av6@dwimlabs.net>
Fri, 08 May 2020 20:36:28 +0800
branchmercurial-5.1
changeset 5363 c7c37251d0e2
parent 4966 4f3c87584a4a
permissions -rwxr-xr-x
test-compat: merge mercurial-5.2 into mercurial-5.1

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