Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 33097:1e79c66d6b07
workingfilectx: add backgroundclose as a kwarg to write()
This is necessary because some callers in merge.py pass backgroundclose=True
when writing.
As with previous changes in this series, this should be a no-op.
author | Phil Cohen <phillco@fb.com> |
---|---|
date | Sun, 25 Jun 2017 22:30:14 -0700 |
parents | 873f638fd7db |
children | eb4c49f55f1f |
comparison
equal
deleted
inserted
replaced
33096:873f638fd7db | 33097:1e79c66d6b07 |
---|---|
1890 | 1890 |
1891 def remove(self, ignoremissing=False): | 1891 def remove(self, ignoremissing=False): |
1892 """wraps unlink for a repo's working directory""" | 1892 """wraps unlink for a repo's working directory""" |
1893 self._repo.wvfs.unlinkpath(self._path, ignoremissing=ignoremissing) | 1893 self._repo.wvfs.unlinkpath(self._path, ignoremissing=ignoremissing) |
1894 | 1894 |
1895 def write(self, data, flags): | 1895 def write(self, data, flags, backgroundclose=False): |
1896 """wraps repo.wwrite""" | 1896 """wraps repo.wwrite""" |
1897 self._repo.wwrite(self._path, data, flags) | 1897 self._repo.wwrite(self._path, data, flags, |
1898 backgroundclose=backgroundclose) | |
1898 | 1899 |
1899 def setflags(self, l, x): | 1900 def setflags(self, l, x): |
1900 self._repo.wvfs.setflags(self._path, l, x) | 1901 self._repo.wvfs.setflags(self._path, l, x) |
1901 | 1902 |
1902 class workingcommitctx(workingctx): | 1903 class workingcommitctx(workingctx): |