##// END OF EJS Templates
py3: use raw strings and %d for formatting...
Gregory Szorc -
r41820:34ae00a1 default
parent child Browse files
Show More
@@ -2474,15 +2474,15 b' def debugrevspec(ui, repo, expr, **opts)'
2474 ui.write(('+++ optimized\n'), label='diff.file_b')
2474 ui.write(('+++ optimized\n'), label='diff.file_b')
2475 sm = difflib.SequenceMatcher(None, arevs, brevs)
2475 sm = difflib.SequenceMatcher(None, arevs, brevs)
2476 for tag, alo, ahi, blo, bhi in sm.get_opcodes():
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 for c in arevs[alo:ahi]:
2478 for c in arevs[alo:ahi]:
2479 ui.write('-%s\n' % c, label='diff.deleted')
2479 ui.write('-%d\n' % c, label='diff.deleted')
2480 if tag in ('insert', 'replace'):
2480 if tag in (r'insert', r'replace'):
2481 for c in brevs[blo:bhi]:
2481 for c in brevs[blo:bhi]:
2482 ui.write('+%s\n' % c, label='diff.inserted')
2482 ui.write('+%d\n' % c, label='diff.inserted')
2483 if tag == 'equal':
2483 if tag == r'equal':
2484 for c in arevs[alo:ahi]:
2484 for c in arevs[alo:ahi]:
2485 ui.write(' %s\n' % c)
2485 ui.write(' %d\n' % c)
2486 return 1
2486 return 1
2487
2487
2488 func = revset.makematcher(tree)
2488 func = revset.makematcher(tree)
General Comments 0
You need to be logged in to leave comments. Login now