Mercurial > evolve
view tests/testlib/map-hg-rev.sh @ 6831:4f02e7f8d56c stable
evolve: check that the evolved revisions are indeed in the repo during abort
Otherwise we might trigger an error while trying to access a revision that was
saved into evolvestate, but wasn't yet created in the repo for whatever reason.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 23 Aug 2024 17:00:28 +0400 |
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