Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.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 | 858df1f354c1 |
children | f5c2c6e69fd7 |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Apr 30 19:30:59 2006 +0200 +++ b/mercurial/commands.py Sun Apr 30 21:11:22 2006 +0200 @@ -303,7 +303,7 @@ raise util.Abort(_("file '%s' already exists"), filename) fh = open(filename, "wb") else: - fd, filename = tempfile.mkstemp(suffix=".hg", prefix="hg-bundle-") + fd, filename = tempfile.mkstemp(prefix="hg-bundle-", suffix=".hg") fh = os.fdopen(fd, "wb") cleanup = filename