diff -r 077f1e637cd8 -r 11229144aa01 mercurial/patch.py --- a/mercurial/patch.py Sun Aug 10 18:38:43 2008 -0500 +++ b/mercurial/patch.py Tue Aug 12 17:47:08 2008 +0200 @@ -1108,7 +1108,7 @@ if ctype == 'ADD' and not os.path.exists(dst): repo.wwrite(gp.path, '', flags) else: - util.set_flags(dst, flags) + util.set_flags(dst, 'l' in flags, 'x' in flags) cmdutil.addremove(repo, cfiles) files = patches.keys() files.extend([r for r in removes if r not in files])