diff -r 0d714a48ab53 -r 1d38f3605b20 mercurial/patch.py --- a/mercurial/patch.py Sun Aug 10 18:01:03 2008 -0500 +++ b/mercurial/patch.py Sun Aug 10 21:55:06 2008 -0500 @@ -1109,7 +1109,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])