diff mercurial/vfs.py @ 35725:2a7e777c9eed

write: add the possibility to pass keyword argument from batchget to vfs We are going to pass atomictemp keyword argument from merge.baychget to vfs.__call__. Update all the frames to accept **kwargs and pass it to the next function. Differential Revision: https://phab.mercurial-scm.org/D1881
author Boris Feld <boris.feld@octobus.net>
date Wed, 17 Jan 2018 16:52:13 +0100
parents 390f860228ba
children 8fb9985382be
line wrap: on
line diff
--- a/mercurial/vfs.py	Thu Jan 18 12:55:19 2018 +0100
+++ b/mercurial/vfs.py	Wed Jan 17 16:52:13 2018 +0100
@@ -83,8 +83,8 @@
         with self(path, mode=mode) as fp:
             return fp.readlines()
 
-    def write(self, path, data, backgroundclose=False):
-        with self(path, 'wb', backgroundclose=backgroundclose) as fp:
+    def write(self, path, data, backgroundclose=False, **kwargs):
+        with self(path, 'wb', backgroundclose=backgroundclose, **kwargs) as fp:
             return fp.write(data)
 
     def writelines(self, path, data, mode='wb', notindexed=False):