Mercurial > evolve
diff tests/test-evolve-public-content-divergent-main.t @ 5271:6a4a65edecdc
tests: avoid non-portable sed command
sed -i is a GNU extension and the i command without newline as well.
Just create the file from scratch with printf to side-step the issue.
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Thu, 09 Apr 2020 19:52:30 +0200 |
parents | 4da1d21231ae |
children | 13376ca93fa3 |
line wrap: on
line diff
--- a/tests/test-evolve-public-content-divergent-main.t Thu Apr 09 19:51:03 2020 +0200 +++ b/tests/test-evolve-public-content-divergent-main.t Thu Apr 09 19:52:30 2020 +0200 @@ -43,7 +43,7 @@ Make an amend and change phase to public: - $ sed -i "1 i I am first" b + $ printf "I am first\nb\n" > b $ hg amend $ hg phase --public