mercurial/patch.py
changeset 23430 3821be85fd4d
parent 23429 f35526b999f4
child 23431 10223d2278f4
--- a/mercurial/patch.py	Tue Nov 18 16:00:54 2014 -0800
+++ b/mercurial/patch.py	Tue Nov 18 16:53:22 2014 -0800
@@ -1559,6 +1559,11 @@
     pass
 
 def diffopts(ui, opts=None, untrusted=False, section='diff'):
+    '''return diffopts with all features supported and parsed'''
+    return difffeatureopts(ui, opts=opts, untrusted=untrusted, section=section)
+
+def difffeatureopts(ui, opts=None, untrusted=False, section='diff'):
+    '''return diffopts with only opted-in features parsed'''
     def get(key, name=None, getter=ui.configbool, forceplain=None):
         if opts:
             v = opts.get(key)