patch: handle symlink updates/replacements (
issue1785)
a -> a not a symlink
% test replacing a file with a symlink
a -> b
now at: base.patch
applying symlink.patch
now at: symlink.patch
a -> b
% test updating a symlink
a -> c
now at: symlink.patch
applying updatelink
patching file a
a
now at: updatelink
a -> c
% test replacing a symlink with a file
now at: addlink
applying replacelinkwithfile
now at: replacelinkwithfile
sss
% test symlink removal
now at: replacelinkwithfile
applying removesl.patch
now at: removesl.patch
C b
C c
C s