# HG changeset patch # User Matt Mackall # Date 2007-12-28 04:29:17 # Node ID 4e400863c5ac71c1c29771d356a7c980552e75b3 # Parent 5049bbf988e1344d5c2e0030c0329c6548559c65 convert/svn: use util.set_flags diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py --- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -765,7 +765,7 @@ class svn_sink(converter_sink, commandli 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 @@ class svn_sink(converter_sink, commandli # 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)