# HG changeset patch # User Sean Farley # Date 2017-01-09 19:01:45 # Node ID 8540967cd9e0909a9a73dbff458c4cedd4db26aa # Parent 6381a6dbc325f9b9e22d627ce2d6bba9c1649164 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. diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -2350,6 +2350,7 @@ def difflabel(func, *args, **kw): ('new', 'diff.extended'), ('deleted', 'diff.extended'), ('index', 'diff.extended'), + ('similarity', 'diff.extended'), ('---', 'diff.file_a'), ('+++', 'diff.file_b')] textprefixes = [('@', 'diff.hunk'),