Mercurial > hg
comparison tests/test-share @ 10062:c204431b039e
test-share: handle sed/GNU-sed discrepancies
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 13 Dec 2009 18:54:54 +0100 |
parents | c1d940d31aea |
children | 97c75ad3b1a0 |
comparison
equal
deleted
inserted
replaced
10061:9e2ab10728a2 | 10062:c204431b039e |
---|---|
16 echo % contents of repo2/.hg | 16 echo % contents of repo2/.hg |
17 cd repo2 | 17 cd repo2 |
18 [ -d .hg/store ] \ | 18 [ -d .hg/store ] \ |
19 && echo "fail: .hg/store should not exist" \ | 19 && echo "fail: .hg/store should not exist" \ |
20 || echo "pass: .hg/store does not exist" | 20 || echo "pass: .hg/store does not exist" |
21 cat .hg/sharedpath | sed "s:$HGTMP:*HGTMP*:"; echo | 21 # sed appends a newline to the stream if none, GNU sed does not |
22 sed "s:$HGTMP:*HGTMP*:" .hg/sharedpath | tr -d '\n'; echo | |
22 | 23 |
23 echo % commit in shared clone | 24 echo % commit in shared clone |
24 echo a >> a | 25 echo a >> a |
25 hg commit -m'change in shared clone' | 26 hg commit -m'change in shared clone' |
26 | 27 |