[PATCH] patchbomb: respect diff.git setting

Martin Geisler mg at daimi.au.dk
Sat Jan 24 11:17:24 CST 2009


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1232817414 -3600
# Node ID 1ca9179b021f5015f02957255d2c745d73d0dd78
# Parent  39ae4fb8cf17a0a12ac862d36471afd0fa453d85
patchbomb: respect diff.git setting

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -224,8 +224,9 @@
     def getpatches(revs):
         for r in cmdutil.revrange(repo, revs):
             output = cStringIO.StringIO()
+            usegit = opts.get('git') or ui.config('diff', 'git')
             p = patch.export(repo, [r], fp=output,
-                             opts=mdiff.diffopts(git=opts.get('git')))
+                             opts=mdiff.diffopts(git=usegit))
             yield output.getvalue().split('\n')
 
     def getbundle(dest):


More information about the Mercurial-devel mailing list