reviewboard.diffviewer.myersdiff¶
- class MyersDiffer(*args, **kwargs)¶
Bases:
Differ
An implementation of Eugene Myers’s O(ND) Diff algorithm based on GNU diff.
- SNAKE_LIMIT = 20¶
- DISCARD_NONE = 0¶
- DISCARD_FOUND = 1¶
- DISCARD_CANCEL = 2¶
- __init__(*args, **kwargs)¶
- ratio()¶
- get_opcodes()¶
Generator that returns opcodes representing the contents of the diff.
The resulting opcodes are in the format of (tag, i1, i2, j1, j2)
- __annotations__ = {}¶