# HG changeset patch # User Christian Ebert # Date 1272739780 -7200 # Node ID f2e3829bfbf0afb89852ff4009ef442a5e350b38 # Parent a3594a64511fe8e3f390683b879a3cbf6e3d69c6 Cleanup test and make it portable - replace sed call with python command - no need to back up hgrc before record diff -r a3594a64511f -r f2e3829bfbf0 tests/test-keyword --- a/tests/test-keyword Fri Apr 30 16:30:09 2010 +0200 +++ b/tests/test-keyword Sat May 01 20:49:40 2010 +0200 @@ -143,10 +143,8 @@ cat a c echo % record -cp "$HGRCPATH" $HGRCPATH.bak -sed -e '1 a \foo' a > a.tmp -mv a.tmp a -echo bar >> a +python -c \ +'l=open("a").readlines();l.insert(1,"foo\n");l.append("bar\n");open("a","w").writelines(l);' hg record -d '1 10' -m rectest<