comparison 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
comparison
equal deleted inserted replaced
4835:5e365008360f 4836:035489f60842
832 832
833 def debuginstall(ui): 833 def debuginstall(ui):
834 '''test Mercurial installation''' 834 '''test Mercurial installation'''
835 835
836 def writetemp(contents): 836 def writetemp(contents):
837 (fd, name) = tempfile.mkstemp() 837 (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-")
838 f = os.fdopen(fd, "wb") 838 f = os.fdopen(fd, "wb")
839 f.write(contents) 839 f.write(contents)
840 f.close() 840 f.close()
841 return name 841 return name
842 842