summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2018-11-15 16:39:58 -0800
committerTreehugger Robot <treehugger-gerrit@google.com>2018-11-21 22:18:18 +0000
commitefb0fda071e6de6d0b53ac5dc0836c89eac91304 (patch)
treedd520ba587defaef4b3a079fd7db04c2be5c3d19 /scripts/update_payload/format_utils.py
parentc01f41a916570f469bdcde735ddc1866138d74ae (diff)
Use a similar file if no old files matches new file name.
Find the old file with the shortest levenshtein distance to the new file name, and use that for diff operations. This works great if the file name has version number in it, but even for a completely new file, using a similar file could still help. Test: generated a diff Change-Id: I45062f81772220a5d5872a98a7af01ab69837dcc
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions