changeset 30808:8540967cd9e0

patch: add label for coloring the similarity extended header Just like the summary says, this will colorize the: similarity index 88% line in the diff output.
author Sean Farley <sean@farley.io>
date Mon, 09 Jan 2017 11:01:45 -0800
parents 6381a6dbc325
children 8614546154cb
files mercurial/patch.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Mon Jan 09 11:24:18 2017 -0800
+++ b/mercurial/patch.py	Mon Jan 09 11:01:45 2017 -0800
@@ -2350,6 +2350,7 @@
                     ('new', 'diff.extended'),
                     ('deleted', 'diff.extended'),
                     ('index', 'diff.extended'),
+                    ('similarity', 'diff.extended'),
                     ('---', 'diff.file_a'),
                     ('+++', 'diff.file_b')]
     textprefixes = [('@', 'diff.hunk'),