changeset 7685:161412a3341c

patchbomb: respect diff settings
author Martin Geisler <mg@daimi.au.dk>
date Sat, 24 Jan 2009 18:52:46 +0100
parents ee3364d3d859
children fa584d23e3cc
files hgext/patchbomb.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):