[PATCH 4 of 4] tests/autodiff.py: explicitly only honor feature diffopts

Siddharth Agarwal sid0 at fb.com
Mon Dec 29 17:57:16 CST 2014


# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1416614546 28800
#      Fri Nov 21 16:02:26 2014 -0800
# Node ID 500550c4f8085e52fe3a87b4c2759c3696ecd5d1
# Parent  249986d8472a676d5a86d7a9f1c370b3ad5b0743
tests/autodiff.py: explicitly only honor feature diffopts

This test extension manages the opts it cares about on its own anyway.

diff --git a/tests/autodiff.py b/tests/autodiff.py
--- a/tests/autodiff.py
+++ b/tests/autodiff.py
@@ -10,7 +10,7 @@
     [('', 'git', '', 'git upgrade mode (yes/no/auto/warn/abort)')],
     '[OPTION]... [FILE]...')
 def autodiff(ui, repo, *pats, **opts):
-    diffopts = patch.diffopts(ui, opts)
+    diffopts = patch.difffeatureopts(ui, opts)
     git = opts.get('git', 'no')
     brokenfiles = set()
     losedatafn = None


More information about the Mercurial-devel mailing list