# HG changeset patch # User Christian Ebert # Date 2010-05-01 18:49:40 # Node ID 76d6c19aa8ef52872528f982ac5feba85322f05d # Parent 590b1d6ef50badaad723302af88218258c7b8382 keyword: cleanup test and make it portable - replace sed call with python command - no need to back up hgrc before record diff --git a/tests/test-keyword b/tests/test-keyword --- a/tests/test-keyword +++ b/tests/test-keyword @@ -143,10 +143,8 @@ echo % compare changenodes in a c 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<