Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 4002:d7b9ec589546
symlinks: use is_link wherever is_exec is used
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 29 Dec 2006 20:04:31 -0600 |
parents | 3297aa945cf2 |
children | ea6174c96ae1 |
line wrap: on
line diff
--- a/mercurial/util.py Fri Dec 29 20:04:31 2006 -0600 +++ b/mercurial/util.py Fri Dec 29 20:04:31 2006 -0600 @@ -713,7 +713,7 @@ return lambda x: is_exec(os.path.join(path, x)) return fallback -def checksymlink(path): +def checklink(path): """check whether the given path is on a symlink-capable filesystem""" # mktemp is not racy because symlink creation will fail if the # file already exists