##// END OF EJS Templates
patch: fix target when patching broken symlinks (issue2368)
Patrick Mezard -
r12340:b0bb7246 stable
parent child Browse files
Show More
@@ -923,7 +923,7 b' def selectfile(afile_orig, bfile_orig, h'
923 if afile == bfile:
923 if afile == bfile:
924 goodb = gooda
924 goodb = gooda
925 else:
925 else:
926 goodb = not nullb and os.path.exists(bfile)
926 goodb = not nullb and os.path.lexists(bfile)
927 createfunc = hunk.createfile
927 createfunc = hunk.createfile
928 missing = not goodb and not gooda and not createfunc()
928 missing = not goodb and not gooda and not createfunc()
929
929
@@ -29,3 +29,9 b' now at: removesl.patch'
29 C b
29 C b
30 C c
30 C c
31 C s
31 C s
32 % replace broken symlink with another broken symlink
33 popping movelink
34 now at: link
35 applying movelink
36 now at: movelink
37 linkb -> linkb
General Comments 0
You need to be logged in to leave comments. Login now