filename = line.split(None, 2)[1]
elif line.startswith('R'):
filename = line.split(None, 3)[2] # renamed to
- if line.startswith('D'):
- if filename not in changed_files: # The file was not readded
- deleted_files.add(filename)
+ if line.startswith('D') and filename not in changed_files:
+ # The file was not readded
+ deleted_files.add(filename)
if filename not in deleted_files and filename not in changed_files:
changed_files.add(filename)
if os.path.exists(filename):