Mercurial > public > mercurial-scm > hg-stable
diff hgext/patchbomb.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 | 258e3a7955b8 |
children | 564034552f7f |
line wrap: on
line diff
--- a/hgext/patchbomb.py Sun Apr 30 19:30:59 2006 +0200 +++ b/hgext/patchbomb.py Sun Apr 30 21:11:22 2006 +0200 @@ -62,7 +62,7 @@ except ImportError: pass def diffstat(patch): - fd, name = tempfile.mkstemp() + fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt") try: p = popen2.Popen3('diffstat -p1 -w79 2>/dev/null > ' + name) try: