# HG changeset patch # User Benoit Boissinot # Date 1271227706 -7200 # Node ID 997173e4911554be91bafc3b9b5cdff51308a1bd # Parent 2d61b612a09df0263ca00ad08cbf35779d7d5eee checklink: use an explicit prefix for the temporary file diff -r 2d61b612a09d -r 997173e49115 mercurial/util.py --- a/mercurial/util.py Tue Apr 13 21:54:59 2010 +0200 +++ b/mercurial/util.py Wed Apr 14 08:48:26 2010 +0200 @@ -682,7 +682,7 @@ """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 - name = tempfile.mktemp(dir=path) + name = tempfile.mktemp(dir=path, prefix='hg-checklink-') try: os.symlink(".", name) os.unlink(name)