tests/testlib/map-hg-rev.sh
author Eric Spishak-Thomas <emspishak@gmail.com>
Wed, 25 Mar 2020 17:44:08 -0400
changeset 5211 a28f24828f62
parent 4966 4f3c87584a4a
permissions -rwxr-xr-x
evolve: fix some documentation grammar/typos

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