1961 def write(self, data, flags, backgroundclose=False): |
1961 def write(self, data, flags, backgroundclose=False): |
1962 """wraps repo.wwrite""" |
1962 """wraps repo.wwrite""" |
1963 self._repo.wwrite(self._path, data, flags, |
1963 self._repo.wwrite(self._path, data, flags, |
1964 backgroundclose=backgroundclose) |
1964 backgroundclose=backgroundclose) |
1965 |
1965 |
|
1966 def clearunknown(self): |
|
1967 """Removes conflicting items in the working directory so that |
|
1968 ``write()`` can be called successfully. |
|
1969 """ |
|
1970 wvfs = self._repo.wvfs |
|
1971 if wvfs.isdir(self._path) and not wvfs.islink(self._path): |
|
1972 wvfs.removedirs(self._path) |
|
1973 |
1966 def setflags(self, l, x): |
1974 def setflags(self, l, x): |
1967 self._repo.wvfs.setflags(self._path, l, x) |
1975 self._repo.wvfs.setflags(self._path, l, x) |
1968 |
1976 |
1969 class workingcommitctx(workingctx): |
1977 class workingcommitctx(workingctx): |
1970 """A workingcommitctx object makes access to data related to |
1978 """A workingcommitctx object makes access to data related to |