patchbomb: respect diff settings
authorMartin Geisler <mg@daimi.au.dk>
Sat, 24 Jan 2009 18:52:46 +0100
changeset 7685 161412a3341c
parent 7684 ee3364d3d859
child 7686 fa584d23e3cc
patchbomb: respect diff settings
hgext/patchbomb.py
--- 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):