comparison tests/test-tag.t @ 42148: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 5abc47d4ca6b
children 34a46d48d24e
comparison
equal deleted inserted replaced
42147:092c5d05ba01 42148:57c462db87fd
318 HG: -- 318 HG: --
319 HG: user: test 319 HG: user: test
320 HG: branch 'tag-and-branch-same-name' 320 HG: branch 'tag-and-branch-same-name'
321 HG: changed .hgtags 321 HG: changed .hgtags
322 ==== 322 ====
323 note: commit message saved in .hg/last-message.txt
324 transaction abort! 323 transaction abort!
325 rollback completed 324 rollback completed
325 note: commit message saved in .hg/last-message.txt
326 abort: pretxncommit.unexpectedabort hook exited with status 1 326 abort: pretxncommit.unexpectedabort hook exited with status 1
327 [255] 327 [255]
328 $ cat .hg/last-message.txt 328 $ cat .hg/last-message.txt
329 custom tag message 329 custom tag message
330 second line 330 second line