mercurial/scmutil.py
changeset 28197 2ada62388bb1
parent 28017 d3f1b7ee5e70
child 28819 826d457df138
--- a/mercurial/scmutil.py	Tue Feb 16 11:08:52 2016 +0000
+++ b/mercurial/scmutil.py	Sat Feb 20 15:24:12 2016 -0800
@@ -276,8 +276,8 @@
         with self(path, mode=mode) as fp:
             return fp.readlines()
 
-    def write(self, path, data):
-        with self(path, 'wb') as fp:
+    def write(self, path, data, backgroundclose=False):
+        with self(path, 'wb', backgroundclose=backgroundclose) as fp:
             return fp.write(data)
 
     def writelines(self, path, data, mode='wb', notindexed=False):