diff -r 32d079f37207 -r 80e9b85d96e5 mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Sat Nov 11 17:02:31 2017 -0800 +++ b/mercurial/bundlerepo.py Sat Nov 11 17:07:33 2017 -0800 @@ -321,7 +321,7 @@ """Write a temporary file to disk """ fdtemp, temp = self.vfs.mkstemp(prefix="hg-bundle-", - suffix=".hg10un") + suffix=suffix) self.tempfile = temp with os.fdopen(fdtemp, pycompat.sysstr('wb')) as fptemp: