Mercurial > hg > crecord
changeset 106:71f7fa103401
core: parse whitespace options from separate 'crecord' section
Prevent options like diff.ignorews from affecting crecord.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 27 Feb 2015 15:05:07 -0800 |
parents | 565f0bc50257 |
children | 5cfaabfe9cb9 |
files | crecord/crecord_core.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)