Submitter | phabricator |
---|---|
Date | Aug. 29, 2017, 3:43 p.m. |
Message ID | <b6120e52532535f204f8fe675aa95454@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/23477/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1525,7 +1525,7 @@ Returns the name of the temporary file. """ d, fn = os.path.split(name) - fd, temp = tempfile.mkstemp(prefix='.%s-' % fn, dir=d) + fd, temp = tempfile.mkstemp(prefix='.%s-' % fn, suffix='~', dir=d) os.close(fd) # Temporary files are created with mode 0600, which is usually not # what we want. If the original file already exists, just copy