Show More
@@ -63,7 +63,7 b' That should be all. Now your patchbomb i' | |||||
63 | import os, errno, socket, tempfile, cStringIO |
|
63 | import os, errno, socket, tempfile, cStringIO | |
64 | import email.MIMEMultipart, email.MIMEBase |
|
64 | import email.MIMEMultipart, email.MIMEBase | |
65 | import email.Utils, email.Encoders, email.Generator |
|
65 | import email.Utils, email.Encoders, email.Generator | |
66 |
from mercurial import cmdutil, commands, hg, mail, |
|
66 | from mercurial import cmdutil, commands, hg, mail, patch, util | |
67 | from mercurial.i18n import _ |
|
67 | from mercurial.i18n import _ | |
68 | from mercurial.node import bin |
|
68 | from mercurial.node import bin | |
69 |
|
69 | |||
@@ -225,7 +225,7 b' def patchbomb(ui, repo, *revs, **opts):' | |||||
225 | for r in cmdutil.revrange(repo, revs): |
|
225 | for r in cmdutil.revrange(repo, revs): | |
226 | output = cStringIO.StringIO() |
|
226 | output = cStringIO.StringIO() | |
227 | p = patch.export(repo, [r], fp=output, |
|
227 | p = patch.export(repo, [r], fp=output, | |
228 |
opts= |
|
228 | opts=patch.diffopts(ui, opts)) | |
229 | yield output.getvalue().split('\n') |
|
229 | yield output.getvalue().split('\n') | |
230 |
|
230 | |||
231 | def getbundle(dest): |
|
231 | def getbundle(dest): |
General Comments 0
You need to be logged in to leave comments.
Login now