Show More
@@ -2474,15 +2474,15 b' def debugrevspec(ui, repo, expr, **opts)' | |||
|
2474 | 2474 | ui.write(('+++ optimized\n'), label='diff.file_b') |
|
2475 | 2475 | sm = difflib.SequenceMatcher(None, arevs, brevs) |
|
2476 | 2476 | for tag, alo, ahi, blo, bhi in sm.get_opcodes(): |
|
2477 | if tag in ('delete', 'replace'): | |
|
2477 | if tag in (r'delete', r'replace'): | |
|
2478 | 2478 | for c in arevs[alo:ahi]: |
|
2479 |
ui.write('-% |
|
|
2480 | if tag in ('insert', 'replace'): | |
|
2479 | ui.write('-%d\n' % c, label='diff.deleted') | |
|
2480 | if tag in (r'insert', r'replace'): | |
|
2481 | 2481 | for c in brevs[blo:bhi]: |
|
2482 |
ui.write('+% |
|
|
2483 | if tag == 'equal': | |
|
2482 | ui.write('+%d\n' % c, label='diff.inserted') | |
|
2483 | if tag == r'equal': | |
|
2484 | 2484 | for c in arevs[alo:ahi]: |
|
2485 |
ui.write(' % |
|
|
2485 | ui.write(' %d\n' % c) | |
|
2486 | 2486 | return 1 |
|
2487 | 2487 | |
|
2488 | 2488 | func = revset.makematcher(tree) |
General Comments 0
You need to be logged in to leave comments.
Login now