Show More
@@ -193,6 +193,9 b' def patchbomb(ui, repo, *revs, **opts):' | |||||
193 | PAGER environment variable is set, your pager will be fired up once |
|
193 | PAGER environment variable is set, your pager will be fired up once | |
194 | for each patchbomb message, so you can verify everything is alright. |
|
194 | for each patchbomb message, so you can verify everything is alright. | |
195 |
|
195 | |||
|
196 | In case email sending fails, you will find a backup of your series | |||
|
197 | introductory message in ``.hg/last-email.txt``. | |||
|
198 | ||||
196 | Examples:: |
|
199 | Examples:: | |
197 |
|
200 | |||
198 | hg email -r 3000 # send patch 3000 only |
|
201 | hg email -r 3000 # send patch 3000 only | |
@@ -309,6 +312,10 b' def patchbomb(ui, repo, *revs, **opts):' | |||||
309 | ui.write(_('\nWrite the introductory message for the ' |
|
312 | ui.write(_('\nWrite the introductory message for the ' | |
310 | 'patch series.\n\n')) |
|
313 | 'patch series.\n\n')) | |
311 | body = ui.edit(body, sender) |
|
314 | body = ui.edit(body, sender) | |
|
315 | # Save serie description in case sendmail fails | |||
|
316 | msgfile = repo.opener('last-email.txt', 'wb') | |||
|
317 | msgfile.write(body) | |||
|
318 | msgfile.close() | |||
312 | return body |
|
319 | return body | |
313 |
|
320 | |||
314 | def getpatchmsgs(patches, patchnames=None): |
|
321 | def getpatchmsgs(patches, patchnames=None): |
@@ -145,6 +145,17 b'' | |||||
145 | +b |
|
145 | +b | |
146 |
|
146 | |||
147 |
|
147 | |||
|
148 | .hg/last-email.txt | |||
|
149 | ||||
|
150 | $ cat > editor << '__EOF__' | |||
|
151 | > #!/bin/sh | |||
|
152 | > echo "a precious introductory message" > "$1" | |||
|
153 | > __EOF__ | |||
|
154 | $ chmod +x editor | |||
|
155 | $ HGEDITOR="'`pwd`'"/editor hg email -n -t foo -s test -r 0:tip > /dev/null | |||
|
156 | $ cat .hg/last-email.txt | |||
|
157 | a precious introductory message | |||
|
158 | ||||
148 |
$ |
|
159 | $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \ | |
149 | > --config extensions.progress= --config progress.assume-tty=1 \ |
|
160 | > --config extensions.progress= --config progress.assume-tty=1 \ | |
150 | > --config progress.delay=0 --config progress.refresh=0 |
|
161 | > --config progress.delay=0 --config progress.refresh=0 |
General Comments 0
You need to be logged in to leave comments.
Login now