--- a/hgext/patchbomb.py Sun Jan 25 11:27:53 2009 +0200
+++ b/hgext/patchbomb.py Sat Jan 24 18:52:46 2009 +0100
@@ -63,7 +63,7 @@
import os, errno, socket, tempfile, cStringIO
import email.MIMEMultipart, email.MIMEBase
import email.Utils, email.Encoders, email.Generator
-from mercurial import cmdutil, commands, hg, mail, mdiff, patch, util
+from mercurial import cmdutil, commands, hg, mail, patch, util
from mercurial.i18n import _
from mercurial.node import bin
@@ -225,7 +225,7 @@
for r in cmdutil.revrange(repo, revs):
output = cStringIO.StringIO()
p = patch.export(repo, [r], fp=output,
- opts=mdiff.diffopts(git=opts.get('git')))
+ opts=patch.diffopts(ui, opts))
yield output.getvalue().split('\n')
def getbundle(dest):