Mercurial > hg
changeset 7680:89c2b78faec4
tests: eliminate use of sed -i (which fails on NetBSD)
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 22 Jan 2009 14:33:49 +0100 |
parents | eb98218db768 |
children | c6f3ff294fe0 |
files | tests/test-diff-change |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-diff-change Thu Jan 22 14:32:39 2009 +0100 +++ b/tests/test-diff-change Thu Jan 22 14:33:49 2009 +0100 @@ -38,11 +38,13 @@ done hg commit -m "lots of text" # 3 -sed -i -e 's,^2$,x,' file.txt +sed -e 's,^2$,x,' file.txt > file.txt.tmp +mv file.txt.tmp file.txt hg commit -m "changed 2 to x" # 4 hg up -r 3 > /dev/null 2>&1 # updated, merged, removed, unresolved -sed -i -e 's,^8$,y,' file.txt +sed -e 's,^8$,y,' file.txt > file.txt.tmp +mv file.txt.tmp file.txt hg commit -m "change 8 to y" > /dev/null 2>&1 # 5 # created new head hg up -C -r 4 > /dev/null 2>&1 # updated, merged, removed, unresolved