Mercurial > repo
comparison bin/whoq @ 12121:3d6b560fc682 draft
<fizzie> sled /hackenv/bin/whoq//s|quotes|${HACKENV-/hackenv}/quotes|
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sat, 16 Nov 2019 23:13:49 +0000 |
parents | 27e437aef877 |
children |
comparison
equal
deleted
inserted
replaced
12120:4db5a8cfee37 | 12121:3d6b560fc682 |
---|---|
1 if [[ "$1" =~ ^[0-9]+$ ]]; then | 1 if [[ "$1" =~ ^[0-9]+$ ]]; then |
2 rev="$(hg blame quotes | sed "$1{s/^ *//;s/:.*//;q};d")" | 2 rev="$(hg blame ${HACKENV-/hackenv}/quotes | sed "$1{s/^ *//;s/:.*//;q};d")" |
3 if [[ -n "$rev" ]]; then | 3 if [[ -n "$rev" ]]; then |
4 hg log -r "$rev" -T "{desc}" | 4 hg log -r "$rev" -T "{desc}" |
5 else | 5 else |
6 echo "$1: no such quote" | 6 echo "$1: no such quote" |
7 fi | 7 fi |