[PATCH 3 of 3] rename util.is_exec to isexec
Adrian Buehlmann
adrian at cadifra.com
Sun May 8 14:25:00 CDT 2011
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1304880347 -7200
# Node ID a84093b8fc1a43a2689c1d716aceb152e8ca5f02
# Parent 3b7935607085ddbf9d3e093caf228cac098c6304
rename util.is_exec to isexec
diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -1004,7 +1004,7 @@
self.opener = scmutil.opener(self.wc)
self.wopener = scmutil.opener(self.wc)
self.childmap = mapfile(ui, self.join('hg-childmap'))
- self.is_exec = util.checkexec(self.wc) and util.is_exec or None
+ self.is_exec = util.checkexec(self.wc) and util.isexec or None
if created:
hook = os.path.join(created, 'hooks', 'pre-revprop-change')
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -138,7 +138,7 @@
p = self._join(x)
if os.path.islink(p):
return 'l'
- if util.is_exec(p):
+ if util.isexec(p):
return 'x'
return ''
return f
@@ -153,7 +153,7 @@
def f(x):
if 'l' in fallback(x):
return 'l'
- if util.is_exec(self._join(x)):
+ if util.isexec(self._join(x)):
return 'x'
return ''
return f
diff --git a/mercurial/posix.py b/mercurial/posix.py
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -44,7 +44,7 @@
args = user and ("%s@%s" % (user, host)) or host
return port and ("%s -p %s" % (args, port)) or args
-def is_exec(f):
+def isexec(f):
"""check whether a file is executable"""
return (os.lstat(f).st_mode & 0100 != 0)
More information about the Mercurial-devel
mailing list