archival: fileit should not use atomictemp, causes performance regression
authorVincent Parrett <vincent@finalbuilder.com>
Wed, 07 Mar 2018 09:07:34 +1100
changeset 36767 a148c67d8b09
parent 36766 d382344c69aa
child 36768 658ed9c7442b
archival: fileit should not use atomictemp, causes performance regression Differential Revision: https://phab.mercurial-scm.org/D2704
mercurial/archival.py
--- a/mercurial/archival.py	Sat Mar 03 18:55:43 2018 -0500
+++ b/mercurial/archival.py	Wed Mar 07 09:07:34 2018 +1100
@@ -272,7 +272,7 @@
         if islink:
             self.opener.symlink(data, name)
             return
-        f = self.opener(name, "w", atomictemp=True)
+        f = self.opener(name, "w", atomictemp=False)
         f.write(data)
         f.close()
         destfile = os.path.join(self.basedir, name)