mercurial/util.py
changeset 10903 cd21bf199d17
parent 10898 5589110e9170
parent 10901 997173e49115
child 11011 648130161e4d
--- a/mercurial/util.py	Tue Apr 13 17:58:38 2010 -0400
+++ b/mercurial/util.py	Wed Apr 14 09:09:43 2010 +0200
@@ -689,7 +689,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)