Show More
@@ -185,11 +185,11 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
185 | 185 | o = repo.changelog.nodesbetween(o, revs or None)[0] |
|
186 | 186 | return [str(repo.changelog.rev(r)) for r in o] |
|
187 | 187 | |
|
188 |
def getbundle(dest |
|
|
188 | def getbundle(dest): | |
|
189 | 189 | tmpdir = tempfile.mkdtemp(prefix='hg-email-bundle-') |
|
190 | 190 | tmpfn = os.path.join(tmpdir, 'bundle') |
|
191 | 191 | try: |
|
192 |
commands.bundle(ui, repo, tmpfn, dest, * |
|
|
192 | commands.bundle(ui, repo, tmpfn, dest, **opts) | |
|
193 | 193 | return open(tmpfn).read() |
|
194 | 194 | finally: |
|
195 | 195 | try: |
@@ -216,6 +216,8 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
216 | 216 | |
|
217 | 217 | if opts.get('outgoing'): |
|
218 | 218 | revs = outgoing(dest, opts.get('rev')) |
|
219 | if opts.get('bundle'): | |
|
220 | opts['revs'] = revs | |
|
219 | 221 | |
|
220 | 222 | # start |
|
221 | 223 | start_time = util.makedate() |
@@ -311,7 +313,7 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
311 | 313 | return [msg] |
|
312 | 314 | |
|
313 | 315 | if opts.get('bundle'): |
|
314 |
msgs = getbundlemsgs(getbundle(dest |
|
|
316 | msgs = getbundlemsgs(getbundle(dest)) | |
|
315 | 317 | else: |
|
316 | 318 | msgs = getexportmsgs() |
|
317 | 319 | |
@@ -380,6 +382,10 b' cmdtable = {' | |||
|
380 | 382 | ('b', 'bundle', None, _('send changes not in target as a binary bundle')), |
|
381 | 383 | ('r', 'rev', [], _('a revision to send')), |
|
382 | 384 | ('s', 'subject', '', 'subject of first message (intro or single patch)'), |
|
383 |
('t', 'to', [], 'email addresses of recipients') |
|
|
385 | ('t', 'to', [], 'email addresses of recipients'), | |
|
386 | ('', 'force', None, _('run even when remote repository is unrelated (with -b)')), | |
|
387 | ('', 'base', [], | |
|
388 | _('a base changeset to specify instead of a destination (with -b)'))] | |
|
389 | + commands.remoteopts, | |
|
384 | 390 | "hg email [OPTION]... [DEST]...") |
|
385 | 391 | } |
General Comments 0
You need to be logged in to leave comments.
Login now