990
990
properties_changed.extend(get_executable_change(executable[0], executable[1]))
992
992
if properties_changed:
993
prop_str = " (properties changed: %s)" % (", ".join(properties_changed),)
993
prop_str = b" (properties changed: %s)" % (", ".join(properties_changed),)
997
997
if (old_present, new_present) == (True, False):
998
self.to_file.write("=== removed %s '%s'\n" %
999
(kind[0], oldpath_encoded))
998
self.to_file.write(b"=== removed %s '%s'\n" %
999
(kind[0].encode('ascii'), oldpath_encoded))
1000
1000
newpath = oldpath
1001
1001
elif (old_present, new_present) == (False, True):
1002
self.to_file.write("=== added %s '%s'\n" %
1003
(kind[1], newpath_encoded))
1002
self.to_file.write(b"=== added %s '%s'\n" %
1003
(kind[1].encode('ascii'), newpath_encoded))
1004
1004
oldpath = newpath
1006
self.to_file.write("=== renamed %s '%s' => '%s'%s\n" %
1007
(kind[0], oldpath_encoded, newpath_encoded, prop_str))
1006
self.to_file.write(b"=== renamed %s '%s' => '%s'%s\n" %
1007
(kind[0].encode('ascii'), oldpath_encoded, newpath_encoded, prop_str))
1009
1009
# if it was produced by iter_changes, it must be
1010
1010
# modified *somehow*, either content or execute bit.
1011
self.to_file.write("=== modified %s '%s'%s\n" % (kind[0],
1011
self.to_file.write(b"=== modified %s '%s'%s\n" % (kind[0].encode('ascii'),
1012
1012
newpath_encoded, prop_str))
1013
1013
if changed_content:
1014
1014
self._diff(oldpath, newpath, kind[0], kind[1], file_id=file_id)