D2704: archival: fileit should not use atomictemp, causes major performance regression

vincent.parrett (Vincent Parrett) phabricator at mercurial-scm.org
Wed Mar 7 11:26:44 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa148c67d8b09: archival: fileit should not use atomictemp, causes performance regression (authored by vincent.parrett, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2704?vs=6680&id=6692

REVISION DETAIL
  https://phab.mercurial-scm.org/D2704

AFFECTED FILES
  mercurial/archival.py

CHANGE DETAILS

diff --git a/mercurial/archival.py b/mercurial/archival.py
--- a/mercurial/archival.py
+++ b/mercurial/archival.py
@@ -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)



To: vincent.parrett, #hg-reviewers, durin42
Cc: mercurial-devel


More information about the Mercurial-devel mailing list