# HG changeset patch # User Gregory Szorc # Date 1456010727 28800 # Node ID ddc07ddcca94d939a4222e58b79529bcf1c92c3f # Parent 2ada62388bb1c52276f10f6c231cc53e0307ebb9 localrepo: support background closing for wwrite() So working copy update can pass it in. diff -r 2ada62388bb1 -r ddc07ddcca94 mercurial/localrepo.py --- a/mercurial/localrepo.py Sat Feb 20 15:24:12 2016 -0800 +++ b/mercurial/localrepo.py Sat Feb 20 15:25:27 2016 -0800 @@ -974,7 +974,7 @@ data = self.wvfs.read(filename) return self._filter(self._encodefilterpats, filename, data) - def wwrite(self, filename, data, flags): + def wwrite(self, filename, data, flags, backgroundclose=False): """write ``data`` into ``filename`` in the working directory This returns length of written (maybe decoded) data. @@ -983,7 +983,7 @@ if 'l' in flags: self.wvfs.symlink(data, filename) else: - self.wvfs.write(filename, data) + self.wvfs.write(filename, data, backgroundclose=backgroundclose) if 'x' in flags: self.wvfs.setflags(filename, False, True) return len(data)