Mercurial > hg
changeset 8306:74a1625d11ec
test-convert-bzr: use sed instead of awk
The run-tests.py script has a list of required tools and awk is not
one of them -- luckily it could be replaced by sed in this case.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 07 May 2009 19:02:39 +0200 |
parents | 7a0fcdd3828f |
children | 2bb6548a8fa6 |
files | tests/test-convert-bzr |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-convert-bzr Wed May 06 17:48:03 2009 -0400 +++ b/tests/test-convert-bzr Thu May 07 19:02:39 2009 +0200 @@ -39,7 +39,7 @@ echo "% compare timestamps" cd source bzr log | \ - awk -F'[ :]' '$1 == "timestamp" { printf "%s %s:%s %s\n", $4, $5, $6, $8 }' \ + sed '/timestamp/!d;s/.\{15\}\([0-9: -]\{16\}\).\{9\}/\1 +0000/' \ > ../bzr-timestamps cd ..