comparison tests/test-keyword @ 5839:59fba5caa94b

Don't use the -i option with sed This patch fixes test-keyword on platforms without GNU sed (like OpenBSD).
author Will Maier <willmaier@ml1.net>
date Wed, 09 Jan 2008 10:00:18 -0600
parents 3bd22fd3b750
children a6ccb957fd07
comparison
equal deleted inserted replaced
5838:1cf99a3e269e 5839:59fba5caa94b
171 EOF 171 EOF
172 echo % incoming 172 echo % incoming
173 # remove path to temp dir 173 # remove path to temp dir
174 hg incoming | sed -e 's/^\(comparing with \).*\(test-keyword.*\)/\1\2/' 174 hg incoming | sed -e 's/^\(comparing with \).*\(test-keyword.*\)/\1\2/'
175 175
176 sed -i.bak -e 's/Id.*/& rejecttest/' a 176 sed -e 's/Id.*/& rejecttest/' a > a.new
177 rm a.bak 177 mv a.new a
178 echo % commit rejecttest 178 echo % commit rejecttest
179 hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' 179 hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>'
180 echo % export 180 echo % export
181 hg export -o ../rejecttest.diff tip 181 hg export -o ../rejecttest.diff tip
182 182