# HG changeset patch # User Siddharth Agarwal # Date 1425078307 28800 # Node ID 71f7fa103401a75988f25a5086736cb355686a11 # Parent 565f0bc50257239506972a2097cf29ca87f38c48 core: parse whitespace options from separate 'crecord' section Prevent options like diff.ignorews from affecting crecord. diff --git a/crecord/crecord_core.py b/crecord/crecord_core.py --- a/crecord/crecord_core.py +++ b/crecord/crecord_core.py @@ -53,9 +53,10 @@ modified, added, removed = changes try: # Mercurial >= 3.3 allow disabling format-changing diffopts - diffopts = patch.difffeatureopts(ui, opts=opts, whitespace=True) + diffopts = patch.difffeatureopts(ui, opts=opts, section='crecord', + whitespace=True) except AttributeError: - diffopts = patch.diffopts(ui, opts=opts) + diffopts = patch.diffopts(ui, opts=opts, section='crecord') diffopts.nodates = True diffopts.git = True chunks = patch.diff(repo, changes=changes, opts=diffopts)