If a directory was just renamed but the contents did not change, it was
not listed in the output. This change should be listed, so be sure to
handle that case.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lines.append('removed "{colour_remove}{value}{colour_default}"'.format(value=' '.join(removed), **colours))
if added:
lines.append('added "{colour_add}{value}{colour_default}"'.format(value=' '.join(added), **colours))
- else:
+ elif not renamed_dirs:
lines.append('changed order')
- if not (removed or added or changed_order):
+ if not (removed or added or changed_order or renamed_dirs):
out = ''
else:
out = '%s: %s' % (self.fieldname, ', '.join(lines))