mercurial/commands.py
changeset 2167 f5c2c6e69fd7
parent 2166 d0c02b4dce9a
parent 2165 d821918e3bee
child 2175 b2ae81a7df29
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -303,7 +303,7 @@ def write_bundle(cg, filename=None, comp
                 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