##// 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 self.ui.write(
3016 self.ui.write(
3017 _(b'note: commit message saved in %s\n') % msgfn
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 raise
3025 raise
3020
3026
3021 def commithook(unused_success):
3027 def commithook(unused_success):
@@ -373,6 +373,7 b' check saving last-message.txt, at first'
373 transaction abort!
373 transaction abort!
374 rollback completed
374 rollback completed
375 note: commit message saved in .hg/last-message.txt
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 abort: pretxncommit.unexpectedabort hook exited with status 1
377 abort: pretxncommit.unexpectedabort hook exited with status 1
377 [255]
378 [255]
378 $ cat .hg/last-message.txt
379 $ cat .hg/last-message.txt
@@ -397,6 +398,7 b' action)'
397 transaction abort!
398 transaction abort!
398 rollback completed
399 rollback completed
399 note: commit message saved in .hg/last-message.txt
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 abort: pretxncommit.unexpectedabort hook exited with status 1
402 abort: pretxncommit.unexpectedabort hook exited with status 1
401 [255]
403 [255]
402
404
@@ -230,6 +230,7 b" and that combination of '--edit' and '--"
230 HG: changed a
230 HG: changed a
231 ====
231 ====
232 note: commit message saved in .hg/last-message.txt
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 transaction abort!
234 transaction abort!
234 rollback completed
235 rollback completed
235 qrefresh interrupted while patch was popped! (revert --all, qpush to recover)
236 qrefresh interrupted while patch was popped! (revert --all, qpush to recover)
@@ -308,6 +308,7 b' Test saving last-message.txt'
308 transaction abort!
308 transaction abort!
309 rollback completed
309 rollback completed
310 note: commit message saved in .hg/last-message.txt
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 abort: pretxncommit.unexpectedabort hook exited with status 1
312 abort: pretxncommit.unexpectedabort hook exited with status 1
312 [255]
313 [255]
313 $ cat .hg/last-message.txt
314 $ cat .hg/last-message.txt
@@ -186,6 +186,7 b' Test saving last-message.txt:'
186 HG: added file2
186 HG: added file2
187 ====
187 ====
188 note: commit message saved in .hg/last-message.txt
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 transaction abort!
190 transaction abort!
190 rollback completed
191 rollback completed
191 qrefresh interrupted while patch was popped! (revert --all, qpush to recover)
192 qrefresh interrupted while patch was popped! (revert --all, qpush to recover)
@@ -229,6 +230,7 b' external process'
229 A file2
230 A file2
230 ====
231 ====
231 note: commit message saved in .hg/last-message.txt
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 transaction abort!
234 transaction abort!
233 rollback completed
235 rollback completed
234 qrefresh interrupted while patch was popped! (revert --all, qpush to recover)
236 qrefresh interrupted while patch was popped! (revert --all, qpush to recover)
@@ -116,6 +116,7 b' same thing, but run $EDITOR'
116 transaction abort!
116 transaction abort!
117 rollback completed
117 rollback completed
118 note: commit message saved in .hg/last-message.txt
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 abort: pretxncommit hook exited with status * (glob)
120 abort: pretxncommit hook exited with status * (glob)
120 [255]
121 [255]
121 $ cat .hg/last-message.txt
122 $ cat .hg/last-message.txt
@@ -323,6 +323,7 b" regardless of '--message')"
323 transaction abort!
323 transaction abort!
324 rollback completed
324 rollback completed
325 note: commit message saved in .hg/last-message.txt
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 abort: pretxncommit.unexpectedabort hook exited with status 1
327 abort: pretxncommit.unexpectedabort hook exited with status 1
327 [255]
328 [255]
328 $ cat .hg/last-message.txt
329 $ cat .hg/last-message.txt
General Comments 0
You need to be logged in to leave comments. Login now