tests/testlib/map-hg-rev.sh
author Anton Shestakov <av6@dwimlabs.net>
Thu, 28 Nov 2019 11:37:56 +0700
changeset 5052 b9a7fb0a0a49
parent 4966 4f3c87584a4a
permissions -rwxr-xr-x
evolve: use obsutil._getobsfate() directly It's been there since 4.5 (265cd9e19d26), we can safely rely on it. It's necessary though to use the correct spelling of superseded.

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