Show More
@@ -223,7 +223,9 b' def patchbomb(ui, repo, *revs, **opts):' | |||||
223 | pass |
|
223 | pass | |
224 | os.rmdir(tmpdir) |
|
224 | os.rmdir(tmpdir) | |
225 |
|
225 | |||
226 | if not opts['test']: |
|
226 | really_sending = not (opts['test'] or opts['mbox']) | |
|
227 | ||||
|
228 | if really_sending: | |||
227 | mail.validateconfig(ui) |
|
229 | mail.validateconfig(ui) | |
228 |
|
230 | |||
229 | if not (revs or opts.get('rev') or opts.get('outgoing')): |
|
231 | if not (revs or opts.get('rev') or opts.get('outgoing')): | |
@@ -351,7 +353,7 b' def patchbomb(ui, repo, *revs, **opts):' | |||||
351 |
|
353 | |||
352 | ui.write('\n') |
|
354 | ui.write('\n') | |
353 |
|
355 | |||
354 | if not opts['test'] and not opts['mbox']: |
|
356 | if really_sending: | |
355 | mailer = mail.connect(ui) |
|
357 | mailer = mail.connect(ui) | |
356 | parent = None |
|
358 | parent = None | |
357 |
|
359 |
@@ -15,3 +15,5 b" hg commit -Amb -d '2 0'" | |||||
15 |
|
15 | |||
16 | hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test 0:tip | \ |
|
16 | hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test 0:tip | \ | |
17 | sed -e 's/\(Message-Id:.*@\|In-Reply-To:.*@\).*/\1/' |
|
17 | sed -e 's/\(Message-Id:.*@\|In-Reply-To:.*@\).*/\1/' | |
|
18 | ||||
|
19 | hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip |
@@ -132,3 +132,12 b' options:' | |||||
132 | --remotecmd specify hg command to run on the remote side |
|
132 | --remotecmd specify hg command to run on the remote side | |
133 |
|
133 | |||
134 | use "hg -v help email" to show global options |
|
134 | use "hg -v help email" to show global options | |
|
135 | This patch series consists of 2 patches. | |||
|
136 | ||||
|
137 | ||||
|
138 | Write the introductory message for the patch series. | |||
|
139 | ||||
|
140 | ||||
|
141 | Writing [PATCH 0 of 2] test ... | |||
|
142 | Writing [PATCH 1 of 2] a ... | |||
|
143 | Writing [PATCH 2 of 2] b ... |
General Comments 0
You need to be logged in to leave comments.
Login now