##// END OF EJS Templates
patch: add similarity config knob in experimental section...
Sean Farley -
r30806:e2796f19 default
parent child Browse files
Show More
@@ -57,6 +57,7 b' class diffopts(object):'
57 'ignorewsamount': False,
57 'ignorewsamount': False,
58 'ignoreblanklines': False,
58 'ignoreblanklines': False,
59 'upgrade': False,
59 'upgrade': False,
60 'showsimilarity': False,
60 }
61 }
61
62
62 def __init__(self, **opts):
63 def __init__(self, **opts):
@@ -2169,6 +2169,11 b' def difffeatureopts(ui, opts=None, untru'
2169 if git:
2169 if git:
2170 buildopts['git'] = get('git')
2170 buildopts['git'] = get('git')
2171
2171
2172 # since this is in the experimental section, we need to call
2173 # ui.configbool directory
2174 buildopts['showsimilarity'] = ui.configbool('experimental',
2175 'extendedheader.similarity')
2176
2172 # need to inspect the ui object instead of using get() since we want to
2177 # need to inspect the ui object instead of using get() since we want to
2173 # test for an int
2178 # test for an int
2174 hconf = ui.config('experimental', 'extendedheader.index')
2179 hconf = ui.config('experimental', 'extendedheader.index')
General Comments 0
You need to be logged in to leave comments. Login now