Use a prefix for debuginstall tempfiles.
authorThomas Arendsen Hein <thomas@intevation.de>
Sat, 07 Jul 2007 20:52:31 +0200
changeset 4849 035489f60842
parent 4848 5e365008360f
child 4851 9a45e1597d08
Use a prefix for debuginstall tempfiles. This way you know where the files came from if they don't get removed.
mercurial/commands.py
--- a/mercurial/commands.py	Fri Jul 06 10:29:09 2007 -0700
+++ b/mercurial/commands.py	Sat Jul 07 20:52:31 2007 +0200
@@ -834,7 +834,7 @@
     '''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()