Show More
@@ -974,7 +974,7 b' class localrepository(object):' | |||||
974 | data = self.wvfs.read(filename) |
|
974 | data = self.wvfs.read(filename) | |
975 | return self._filter(self._encodefilterpats, filename, data) |
|
975 | return self._filter(self._encodefilterpats, filename, data) | |
976 |
|
976 | |||
977 | def wwrite(self, filename, data, flags): |
|
977 | def wwrite(self, filename, data, flags, backgroundclose=False): | |
978 | """write ``data`` into ``filename`` in the working directory |
|
978 | """write ``data`` into ``filename`` in the working directory | |
979 |
|
979 | |||
980 | This returns length of written (maybe decoded) data. |
|
980 | This returns length of written (maybe decoded) data. | |
@@ -983,7 +983,7 b' class localrepository(object):' | |||||
983 | if 'l' in flags: |
|
983 | if 'l' in flags: | |
984 | self.wvfs.symlink(data, filename) |
|
984 | self.wvfs.symlink(data, filename) | |
985 | else: |
|
985 | else: | |
986 | self.wvfs.write(filename, data) |
|
986 | self.wvfs.write(filename, data, backgroundclose=backgroundclose) | |
987 | if 'x' in flags: |
|
987 | if 'x' in flags: | |
988 | self.wvfs.setflags(filename, False, True) |
|
988 | self.wvfs.setflags(filename, False, True) | |
989 | return len(data) |
|
989 | return len(data) |
General Comments 0
You need to be logged in to leave comments.
Login now