From d95566952bbfa46e8d5efb84379fa52bbb729b09 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Thu, 1 Oct 2009 19:38:20 -0400 Subject: [PATCH] add support for some hg options --HG-- branch : pmacs2 --- method/hg.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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