--- a/tests/test-histedit-edit.t Mon Apr 25 11:09:33 2022 +0200
+++ b/tests/test-histedit-edit.t Wed May 04 18:17:44 2022 +0200
@@ -356,6 +356,8 @@
A f
$ rm -f .hg/last-message.txt
+ $ mkdir dir
+ $ cd dir
$ HGEDITOR="sh $TESTTMP/editor.sh" hg histedit tip --commands - 2>&1 << EOF
> mess 1fd3b2fe7754 f
> EOF
@@ -372,10 +374,11 @@
====
transaction abort!
rollback completed
- note: commit message saved in .hg/last-message.txt
- note: use 'hg commit --logfile .hg/last-message.txt --edit' to reuse it
+ note: commit message saved in ../.hg/last-message.txt
+ note: use 'hg commit --logfile ../.hg/last-message.txt --edit' to reuse it
abort: pretxncommit.unexpectedabort hook exited with status 1
[40]
+ $ cd ..
$ cat .hg/last-message.txt
f