author | Anton Shestakov <av6@dwimlabs.net> |
Fri, 08 May 2020 22:50:09 +0800 | |
branch | mercurial-4.6 |
changeset 5368 | 844b1ad5b34b |
parent 4966 | 4f3c87584a4a |
permissions | -rwxr-xr-x |
4966
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
1 |
#!/bin/sh |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
2 |
set -eu |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
3 |
|
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
4 |
case $1 in |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
5 |
default) |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
6 |
echo default |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
7 |
;; |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
8 |
mercurial-*) |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
9 |
exp=$(echo "$1" | cut -d- -f2 | sed 's#\.#\\.#g') |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
10 |
echo 'max(tag("re:^'"$exp"'"))' |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
11 |
;; |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
12 |
*) |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
13 |
echo stable |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
14 |
;; |
4f3c87584a4a
heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
15 |
esac |