##// END OF EJS Templates
commit: tell user what to do with .hg/last-message.txt...
Martin von Zweigbergk -
r45227:c6d31e65 default
parent child Browse files
Show More
@@ -3016,6 +3016,12 b' class localrepository(object):'
3016 3016 self.ui.write(
3017 3017 _(b'note: commit message saved in %s\n') % msgfn
3018 3018 )
3019 self.ui.write(
3020 _(
3021 b"note: use 'hg commit --logfile "
3022 b".hg/last-message.txt --edit' to reuse it\n"
3023 )
3024 )
3019 3025 raise
3020 3026
3021 3027 def commithook(unused_success):
@@ -373,6 +373,7 b' check saving last-message.txt, at first'
373 373 transaction abort!
374 374 rollback completed
375 375 note: commit message saved in .hg/last-message.txt
376 note: use 'hg commit --logfile .hg/last-message.txt --edit' to reuse it
376 377 abort: pretxncommit.unexpectedabort hook exited with status 1
377 378 [255]
378 379 $ cat .hg/last-message.txt
@@ -397,6 +398,7 b' action)'
397 398 transaction abort!
398 399 rollback completed
399 400 note: commit message saved in .hg/last-message.txt
401 note: use 'hg commit --logfile .hg/last-message.txt --edit' to reuse it
400 402 abort: pretxncommit.unexpectedabort hook exited with status 1
401 403 [255]
402 404
@@ -230,6 +230,7 b" and that combination of '--edit' and '--"
230 230 HG: changed a
231 231 ====
232 232 note: commit message saved in .hg/last-message.txt
233 note: use 'hg commit --logfile .hg/last-message.txt --edit' to reuse it
233 234 transaction abort!
234 235 rollback completed
235 236 qrefresh interrupted while patch was popped! (revert --all, qpush to recover)
@@ -308,6 +308,7 b' Test saving last-message.txt'
308 308 transaction abort!
309 309 rollback completed
310 310 note: commit message saved in .hg/last-message.txt
311 note: use 'hg commit --logfile .hg/last-message.txt --edit' to reuse it
311 312 abort: pretxncommit.unexpectedabort hook exited with status 1
312 313 [255]
313 314 $ cat .hg/last-message.txt
@@ -186,6 +186,7 b' Test saving last-message.txt:'
186 186 HG: added file2
187 187 ====
188 188 note: commit message saved in .hg/last-message.txt
189 note: use 'hg commit --logfile .hg/last-message.txt --edit' to reuse it
189 190 transaction abort!
190 191 rollback completed
191 192 qrefresh interrupted while patch was popped! (revert --all, qpush to recover)
@@ -229,6 +230,7 b' external process'
229 230 A file2
230 231 ====
231 232 note: commit message saved in .hg/last-message.txt
233 note: use 'hg commit --logfile .hg/last-message.txt --edit' to reuse it
232 234 transaction abort!
233 235 rollback completed
234 236 qrefresh interrupted while patch was popped! (revert --all, qpush to recover)
@@ -116,6 +116,7 b' same thing, but run $EDITOR'
116 116 transaction abort!
117 117 rollback completed
118 118 note: commit message saved in .hg/last-message.txt
119 note: use 'hg commit --logfile .hg/last-message.txt --edit' to reuse it
119 120 abort: pretxncommit hook exited with status * (glob)
120 121 [255]
121 122 $ cat .hg/last-message.txt
@@ -323,6 +323,7 b" regardless of '--message')"
323 323 transaction abort!
324 324 rollback completed
325 325 note: commit message saved in .hg/last-message.txt
326 note: use 'hg commit --logfile .hg/last-message.txt --edit' to reuse it
326 327 abort: pretxncommit.unexpectedabort hook exited with status 1
327 328 [255]
328 329 $ cat .hg/last-message.txt
General Comments 0
You need to be logged in to leave comments. Login now