diff --git a/method/hg.py b/method/hg.py index f30c759..b2459a0 100644 --- a/method/hg.py +++ b/method/hg.py @@ -76,7 +76,14 @@ class HgDiff(Method, HgBase): ui_imp, repo = self._hg_init() revs = self._get_revs(w, **vargs) try: - hgc.diff(ui_imp, repo, w.buffer.path, rev=revs) + c = w.application.config + opts = { + 'ignore_all_space': c.get('hg.diff.ignore_app_space'), + 'ignore_space_change': c.get('hg.diff.ignore_space_change'), + 'ignore-blank-lines': c.get('hg.diff.ignore_blank_lines'), + 'unified': c.get('hg.diff.unified'), + } + hgc.diff(ui_imp, repo, w.buffer.path, rev=revs, **opts) except Exception, e: w.set_error(str(e)) return