diff hgext/patchbomb.py @ 23450:a074eeeabe32

patchbomb: don't honor whitespace and format-changing diffopts (BC) The whitespace diffopts break lossless transmission, and the format-changing ones make import harder. We expect parsers to be able to read git-style diffs, though.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 18 Nov 2014 17:36:24 -0800
parents 83a191031f94
children 1de214837f5e
line wrap: on
line diff
--- a/hgext/patchbomb.py	Wed Nov 26 11:45:21 2014 -0800
+++ b/hgext/patchbomb.py	Tue Nov 18 17:36:24 2014 -0800
@@ -166,7 +166,7 @@
                       'uncommitted changes\n'))
         output = cStringIO.StringIO()
         cmdutil.export(repo, [r], fp=output,
-                     opts=patch.diffopts(ui, opts))
+                     opts=patch.difffeatureopts(ui, opts, git=True))
         yield output.getvalue().split('\n')
 def _getbundle(repo, dest, **opts):
     """return a bundle containing changesets missing in "dest"