diff hgext/patchbomb.py @ 10611:e764f24a45ee

patch/diff: move patch.export() to cmdutil.export() This API change will allow us to break a cycle between patch and cmdutil.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 08 Mar 2010 19:43:24 +0100
parents d757bc0c7865
children 7a0502a6f9a1
line wrap: on
line diff
--- a/hgext/patchbomb.py	Mon Mar 08 11:12:48 2010 -0600
+++ b/hgext/patchbomb.py	Mon Mar 08 19:43:24 2010 +0100
@@ -249,7 +249,7 @@
     def getpatches(revs):
         for r in cmdutil.revrange(repo, revs):
             output = cStringIO.StringIO()
-            patch.export(repo, [r], fp=output,
+            cmdutil.export(repo, [r], fp=output,
                          opts=patch.diffopts(ui, opts))
             yield output.getvalue().split('\n')