[PATCH STABLE] test-mq: fix sed call on OSX
Patrick Mezard
pmezard at gmail.com
Fri Feb 3 12:45:29 CST 2012
# HG changeset patch
# User Patrick Mezard <pmezard at gmail.com>
# Date 1328293393 -3600
# Branch stable
# Node ID 3b9c18ed998553ab19321e1c8b852fa6b76eac13
# Parent 0620421044a2bcaafd054a6ee454614888699de8
test-mq: fix sed call on OSX
- The regular sed on OSX wants: -i "" not -i""
- GNU sed wants: -i"" not -i ""
Backups are fine.
diff --git a/tests/test-mq.t b/tests/test-mq.t
--- a/tests/test-mq.t
+++ b/tests/test-mq.t
@@ -1476,7 +1476,7 @@
Test that qfinish preserve phase when mq.secret=false
- $ sed -i'' $HGRCPATH -e 's/secret=true/secret=false/'
+ $ sed -i.bak -e 's/secret=true/secret=false/' $HGRCPATH
$ hg qfinish qbase
patch add-file2 finalized without changeset message
$ hg phase 'all()'
More information about the Mercurial-devel
mailing list