patch: add label for coloring the similarity extended header
authorSean Farley <sean@farley.io>
Mon, 09 Jan 2017 11:01:45 -0800
changeset 30808 8540967cd9e0
parent 30807 6381a6dbc325
child 30809 8614546154cb
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.
mercurial/patch.py
--- 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'),