diff mercurial/patch.py @ 6877:1d38f3605b20

util: set_flags shouldn't know about repo flag formats
author Matt Mackall <mpm@selenic.com>
date Sun, 10 Aug 2008 21:55:06 -0500
parents bbd89c9e6012
children 11229144aa01
line wrap: on
line diff
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -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])