Anton Shestakov <av6@dwimlabs.net>, Sun, 12 Nov 2017 14:23:59 +0800
level0lify: if new version is 1, then there's no old version
--- a/diff.py Sun Nov 12 14:22:27 2017 +0800
+++ b/diff.py Sun Nov 12 14:23:59 2017 +0800
versions = items[kind][id]
- for lines, version in ((a, old), (b, new)):
+ todo.insert(0, (a, old))
+ for lines, version in todo:
lines.append('{} {}'.format(kind, id))