Mercurial > repo
comparison bin/whoq @ 11594:27e437aef877 draft
<fizzie> fetch bin/whoq https://hack.esolangs.org/get/bin/whoq
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 08 Aug 2018 13:52:58 +0000 |
parents | eb873414aa9c |
children | 3d6b560fc682 |
comparison
equal
deleted
inserted
replaced
11593:eb873414aa9c | 11594:27e437aef877 |
---|---|
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 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" |