# HG changeset patch # User Dirkjan Ochtman # Date 1232631229 -3600 # Node ID 89c2b78faec48c141e6aeb7a0e23cc298e9e6468 # Parent eb98218db768245916fbaf17571f80070714ed73 tests: eliminate use of sed -i (which fails on NetBSD) diff -r eb98218db768 -r 89c2b78faec4 tests/test-diff-change --- 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