Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/context.py Sun Jun 25 22:29:09 2017 -0700 +++ b/mercurial/context.py Sun Jun 25 22:30:14 2017 -0700 @@ -1892,9 +1892,10 @@ """wraps unlink for a repo's working directory""" self._repo.wvfs.unlinkpath(self._path, ignoremissing=ignoremissing) - def write(self, data, flags): + def write(self, data, flags, backgroundclose=False): """wraps repo.wwrite""" - self._repo.wwrite(self._path, data, flags) + self._repo.wwrite(self._path, data, flags, + backgroundclose=backgroundclose) def setflags(self, l, x): self._repo.wvfs.setflags(self._path, l, x)