view tests/testlib/map-hg-rev.sh @ 5069:ada8b7413c0a

obshistory: remove unused preparesuccessorset() It was used in code that was removed in 901186e1fe05.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 13 Jan 2020 14:59:08 +0700
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