patch: return list of modified files even when an exception is raised
The file list is passed in as an argument and updated in place.
This fixes issue399.
%% Should show unknown? unknownremoving b%% Should show unknown and b removedR b? unknown%% Should show a and unknownaunknown