# HG changeset patch # User Sean Farley # Date 2017-01-09 18:59:45 # Node ID dbcc10cf7f8d9318688d5d9771cdc92d67793748 # Parent b8ad243f5ded9ba56d3f1a64d4d1008dbdb6701a patch: add label for coloring the index extended header Just like the summary says, this will colorize the: index 3d3ba4b65e11..57274a0f46b2 100644 line in the diff output. diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -2343,6 +2343,7 @@ def difflabel(func, *args, **kw): ('old', 'diff.extended'), ('new', 'diff.extended'), ('deleted', 'diff.extended'), + ('index', 'diff.extended'), ('---', 'diff.file_a'), ('+++', 'diff.file_b')] textprefixes = [('@', 'diff.hunk'),