# HG changeset patch # User Matt Mackall # Date 1167444271 21600 # Node ID 3f0ba82c103f1c19ce239c3be013b2a7b8d7c8bc # Parent c190df14338cee2fee25fd8b63f7ab20ea60d280 exec: remove last flag from is_exec diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -710,7 +710,7 @@ def checkexec(path): def execfunc(path, fallback): '''return an is_exec() function with default to fallback''' if checkexec(path): - return lambda x: is_exec(os.path.join(path, x), False) + return lambda x: is_exec(os.path.join(path, x)) return fallback # Platform specific variants @@ -772,9 +772,6 @@ if os.name == 'nt': '''return False if pid dead, True if running or not known''' return True - def is_exec(f, last): - return last - def set_exec(f, mode): pass @@ -849,7 +846,7 @@ else: pf = pf[1:-1] # Remove the quotes return pf - def is_exec(f, last): + def is_exec(f): """check whether a file is executable""" return (os.lstat(f).st_mode & 0100 != 0)