diff tests/test-mq-qnew.t @ 41362:57c462db87fd

localrepo: use context manager for transaction in commit() A side-effect is that the transaction is released a little earlier, so the "commit message saved in ..." messages now comes after the "rollback completed" message. That seems slightly better to me. Differential Revision: https://phab.mercurial-scm.org/D5622
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 16 Jan 2019 17:33:47 -0800
parents 41ef02ba329b
children 12243f15d53e
line wrap: on
line diff
--- a/tests/test-mq-qnew.t	Wed Jan 16 17:46:39 2019 -0800
+++ b/tests/test-mq-qnew.t	Wed Jan 16 17:33:47 2019 -0800
@@ -305,9 +305,9 @@
   HG: branch 'default'
   HG: no files changed
   ====
-  note: commit message saved in .hg/last-message.txt
   transaction abort!
   rollback completed
+  note: commit message saved in .hg/last-message.txt
   abort: pretxncommit.unexpectedabort hook exited with status 1
   [255]
   $ cat .hg/last-message.txt