Show More
@@ -485,14 +485,14 b' Modifying a file while the editor is ope' | |||||
485 | $ echo r0 > foo; hg commit -qAm "r0" |
|
485 | $ echo r0 > foo; hg commit -qAm "r0" | |
486 | $ echo alpha > foo; hg commit -qm "alpha" |
|
486 | $ echo alpha > foo; hg commit -qm "alpha" | |
487 | $ echo beta >> foo |
|
487 | $ echo beta >> foo | |
488 |
$ cat > $TESTTMP/ |
|
488 | $ cat > $TESTTMP/touchy_editor.sh <<EOF | |
|
489 | > sleep 1 | |||
|
490 | > echo delta >> $TESTTMP/modify-during-amend/foo | |||
|
491 | > sleep 1 | |||
489 | > echo hi > "\$1" |
|
492 | > echo hi > "\$1" | |
490 |
> sleep |
|
493 | > sleep 1 | |
491 | > EOF |
|
494 | > EOF | |
492 |
$ HGEDITOR="sh $TESTTMP/ |
|
495 | $ HGEDITOR="sh $TESTTMP/touchy_editor.sh" hg commit --amend | |
493 | $ sleep 1 |
|
|||
494 | $ echo delta >> foo |
|
|||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now