# HG changeset patch # User Thomas Arendsen Hein # Date 1183834351 -7200 # Node ID 035489f608429e469bbe015c586c4c4194c21744 # Parent 5e365008360f68cfab363337525ecfaa4ddca754 Use a prefix for debuginstall tempfiles. This way you know where the files came from if they don't get removed. diff --git a/mercurial/commands.py b/mercurial/commands.py --- 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()