view tests/testlib/map-hg-rev.sh @ 5740:35b883a4ff5a stable 10.2.0

packaging: update the debian changelog
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 31 Jan 2021 17:08:40 +0800
parents 4f3c87584a4a
children
line wrap: on
line source

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