diff hgext/convert/subversion.py @ 5705:4e400863c5ac

convert/svn: use util.set_flags
author Matt Mackall <mpm@selenic.com>
date Thu, 27 Dec 2007 22:29:17 -0600
parents b63ef7b1441c
children 0145f9afb0e7
line wrap: on
line diff
--- a/hgext/convert/subversion.py	Thu Dec 27 22:27:48 2007 -0600
+++ b/hgext/convert/subversion.py	Thu Dec 27 22:29:17 2007 -0600
@@ -765,7 +765,7 @@
             fp = open(hook, 'w')
             fp.write(pre_revprop_change)
             fp.close()
-            util.set_exec(hook, True)
+            util.set_flags(hook, "x")
 
         xport = transport.SvnRaTransport(url=geturl(path))
         self.uuid = svn.ra.get_uuid(xport.ra)
@@ -792,7 +792,7 @@
                 # systematically is just as expensive and much simpler.
                 was_exec = 'x' not in flags
 
-            util.set_exec(self.wjoin(filename), 'x' in flags)
+            util.set_flags(self.wjoin(filename), flags)
             if was_exec:
                 if 'x' not in flags:
                     self.delexec.append(filename)