[PATCH] Don't use the -i option with sed
Will Maier
willmaier at ml1.net
Wed Jan 9 16:16:35 UTC 2008
I also added a note about the -i option to the WritingTests page on
the wiki.
# HG changeset patch
# User Will Maier <willmaier at ml1.net>
# Date 1199894418 21600
# Node ID 6bdb3cd395f7e053804a6e6aa14a274ffb4eca41
# Parent 5379497af641f87170c1eff2d0bb2a7df2189908
Don't use the -i option with sed
This patch fixes test-keyword on platforms without GNU sed (like
OpenBSD).
diff --git a/tests/test-keyword b/tests/test-keyword
--- a/tests/test-keyword
+++ b/tests/test-keyword
@@ -173,8 +173,8 @@ echo % incoming
# remove path to temp dir
hg incoming | sed -e 's/^\(comparing with \).*\(test-keyword.*\)/\1\2/'
-sed -i.bak -e 's/Id.*/& rejecttest/' a
-rm a.bak
+sed -e 's/Id.*/& rejecttest/' a > a.new
+mv a.new a
echo % commit rejecttest
hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user at example.com>'
echo % export
--
[Will Maier]-----------------[willmaier at ml1.net|http://www.lfod.us/]
More information about the Mercurial-devel
mailing list