Mercurial > hg
diff mercurial/appendfile.py @ 2165:d821918e3bee
Use better names (hg-{usage}-{random}.{suffix}) for temporary files.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 30 Apr 2006 21:11:22 +0200 |
parents | c62112815801 |
children | 6886bc0b77af |
line wrap: on
line diff
--- a/mercurial/appendfile.py Sun Apr 30 19:30:59 2006 +0200 +++ b/mercurial/appendfile.py Sun Apr 30 21:11:22 2006 +0200 @@ -38,7 +38,7 @@ self.tmpname = tmpname self.tmpfp = open(self.tmpname, 'ab+') else: - fd, self.tmpname = tempfile.mkstemp() + fd, self.tmpname = tempfile.mkstemp(prefix="hg-appendfile-") self.tmpfp = os.fdopen(fd, 'ab+') self.realfp = fp self.offset = fp.tell()