Comments
Patch
@@ -55,10 +55,11 @@ class diffopts(object):
'index': 0,
'ignorews': False,
'ignorewsamount': False,
'ignoreblanklines': False,
'upgrade': False,
+ 'showsimilarity': False,
}
def __init__(self, **opts):
for k in self.defaults.keys():
v = opts.get(k)
@@ -2167,10 +2167,15 @@ def difffeatureopts(ui, opts=None, untru
}
if git:
buildopts['git'] = get('git')
+ # since this is in the experimental section, we need to call
+ # ui.configbool directory
+ buildopts['showsimilarity'] = ui.configbool('experimental',
+ 'extendedheader.similarity')
+
# need to inspect the ui object instead of using get() since we want to
# test for an int
hconf = ui.config('experimental', 'extendedheader.index')
if hconf is not None:
hlen = None