diff mercurial/commands.py @ 4836:035489f60842

Use a prefix for debuginstall tempfiles. This way you know where the files came from if they don't get removed.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 07 Jul 2007 20:52:31 +0200
parents 616a5adbf402
children 2192001e4bb4
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -834,7 +834,7 @@ def debuginstall(ui):
     '''test Mercurial installation'''
 
     def writetemp(contents):
-        (fd, name) = tempfile.mkstemp()
+        (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-")
         f = os.fdopen(fd, "wb")
         f.write(contents)
         f.close()