Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 31309:8908f985570c
vfs: use repo.wvfs.unlinkpath
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 14 Jan 2015 01:15:26 +0100 |
parents | bd884ef2ee46 |
children | ff2f90503d64 |
comparison
equal
deleted
inserted
replaced
31308:62939e0148f1 | 31309:8908f985570c |
---|---|
1768 # invert comparison to reuse the same code path | 1768 # invert comparison to reuse the same code path |
1769 return fctx.cmp(self) | 1769 return fctx.cmp(self) |
1770 | 1770 |
1771 def remove(self, ignoremissing=False): | 1771 def remove(self, ignoremissing=False): |
1772 """wraps unlink for a repo's working directory""" | 1772 """wraps unlink for a repo's working directory""" |
1773 util.unlinkpath(self._repo.wjoin(self._path), ignoremissing) | 1773 self._repo.wvfs.unlinkpath(self._path, ignoremissing=ignoremissing) |
1774 | 1774 |
1775 def write(self, data, flags): | 1775 def write(self, data, flags): |
1776 """wraps repo.wwrite""" | 1776 """wraps repo.wwrite""" |
1777 self._repo.wwrite(self._path, data, flags) | 1777 self._repo.wwrite(self._path, data, flags) |
1778 | 1778 |