equal
deleted
inserted
replaced
491 > EOF |
491 > EOF |
492 $ HGEDITOR="sh $TESTTMP/sleepy_editor.sh" hg commit --amend & |
492 $ HGEDITOR="sh $TESTTMP/sleepy_editor.sh" hg commit --amend & |
493 $ sleep 1 |
493 $ sleep 1 |
494 $ echo delta >> foo |
494 $ echo delta >> foo |
495 $ sleep 3 |
495 $ sleep 3 |
496 $ if (hg diff -c . | grep 'delta' >/dev/null) || [[ -n "$(hg status)" ]]; then |
496 $ if (hg diff -c . | grep 'delta' >/dev/null) || [ -n "$(hg status)" ]; then |
497 > echo "OK." |
497 > echo "OK." |
498 > else |
498 > else |
499 > echo "Bug detected. 'delta' is not part of the commit OR the wdir" |
499 > echo "Bug detected. 'delta' is not part of the commit OR the wdir" |
500 > echo "Diff and status before rebuild:" |
500 > echo "Diff and status before rebuild:" |
501 > hg diff |
501 > hg diff |