Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-cpython/src/dirstate/item.rs @ 48146:3c7db97ce541
dirstate-item: implement `drop_merge_data` on the Rust DirstateItem
It was currently missing and we want to be able to use in it the Rust case too.
Differential Revision: https://phab.mercurial-scm.org/D11579
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 02 Oct 2021 00:14:32 +0200 |
parents | 79bc60ca5946 |
children | 38488d488ec1 |
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/item.rs Sat Oct 02 00:02:55 2021 +0200 +++ b/rust/hg-cpython/src/dirstate/item.rs Sat Oct 02 00:14:32 2021 +0200 @@ -166,6 +166,11 @@ DirstateItem::create_instance(py, Cell::new(entry)) } + def drop_merge_data(&self) -> PyResult<PyNone> { + self.update(py, |entry| entry.drop_merge_data()); + Ok(PyNone) + } + def set_clean( &self, mode: i32,