tests/test-amend.t
changeset 43828 36444dddaeb4
parent 43799 5558e3437872
child 43893 2e672ccc2220
equal deleted inserted replaced
43827:c27e688fcdc3 43828:36444dddaeb4
   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