equal
deleted
inserted
replaced
1554 """ |
1554 """ |
1555 # fctx should be a filectx (not a workingfilectx) |
1555 # fctx should be a filectx (not a workingfilectx) |
1556 # invert comparison to reuse the same code path |
1556 # invert comparison to reuse the same code path |
1557 return fctx.cmp(self) |
1557 return fctx.cmp(self) |
1558 |
1558 |
|
1559 def remove(self, ignoremissing=False): |
|
1560 """wraps unlink for a repo's working directory""" |
|
1561 util.unlinkpath(self._repo.wjoin(self._path), ignoremissing) |
|
1562 |
|
1563 def write(self, data, flags): |
|
1564 """wraps repo.wwrite""" |
|
1565 self._repo.wwrite(self._path, data, flags) |
|
1566 |
1559 class memctx(committablectx): |
1567 class memctx(committablectx): |
1560 """Use memctx to perform in-memory commits via localrepo.commitctx(). |
1568 """Use memctx to perform in-memory commits via localrepo.commitctx(). |
1561 |
1569 |
1562 Revision information is supplied at initialization time while |
1570 Revision information is supplied at initialization time while |
1563 related files data and is made available through a callback |
1571 related files data and is made available through a callback |