Show More
@@ -485,14 +485,14 b' Modifying a file while the editor is ope' | |||
|
485 | 485 | $ echo r0 > foo; hg commit -qAm "r0" |
|
486 | 486 | $ echo alpha > foo; hg commit -qm "alpha" |
|
487 | 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 | 492 | > echo hi > "\$1" |
|
490 |
> sleep |
|
|
493 | > sleep 1 | |
|
491 | 494 | > EOF |
|
492 |
$ HGEDITOR="sh $TESTTMP/ |
|
|
493 | $ sleep 1 | |
|
494 | $ echo delta >> foo | |
|
495 | $ sleep 3 | |
|
495 | $ HGEDITOR="sh $TESTTMP/touchy_editor.sh" hg commit --amend | |
|
496 | 496 | $ if (hg diff -c . | grep 'delta' >/dev/null) || [ -n "$(hg status)" ]; then |
|
497 | 497 | > echo "OK." |
|
498 | 498 | > else |
General Comments 0
You need to be logged in to leave comments.
Login now