Mercurial > hg
comparison mercurial/patch.py @ 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 | 897726622877 |
comparison
equal
deleted
inserted
replaced
30807:6381a6dbc325 | 30808:8540967cd9e0 |
---|---|
2348 ('rename', 'diff.extended'), | 2348 ('rename', 'diff.extended'), |
2349 ('old', 'diff.extended'), | 2349 ('old', 'diff.extended'), |
2350 ('new', 'diff.extended'), | 2350 ('new', 'diff.extended'), |
2351 ('deleted', 'diff.extended'), | 2351 ('deleted', 'diff.extended'), |
2352 ('index', 'diff.extended'), | 2352 ('index', 'diff.extended'), |
2353 ('similarity', 'diff.extended'), | |
2353 ('---', 'diff.file_a'), | 2354 ('---', 'diff.file_a'), |
2354 ('+++', 'diff.file_b')] | 2355 ('+++', 'diff.file_b')] |
2355 textprefixes = [('@', 'diff.hunk'), | 2356 textprefixes = [('@', 'diff.hunk'), |
2356 ('-', 'diff.deleted'), | 2357 ('-', 'diff.deleted'), |
2357 ('+', 'diff.inserted')] | 2358 ('+', 'diff.inserted')] |