Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-cpython/src/dirstate/item.rs @ 48206:1000db4a71f1
dirstate-v2: Store unsigned integers inside DirstateEntry
The negative marker values are not used anymore.
Differential Revision: https://phab.mercurial-scm.org/D11634
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 11 Oct 2021 18:37:21 +0200 |
parents | 1ab4523afe12 |
children | 602c8e8411f5 |
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/item.rs Tue Oct 12 16:38:13 2021 +0200 +++ b/rust/hg-cpython/src/dirstate/item.rs Mon Oct 11 18:37:21 2021 +0200 @@ -21,7 +21,7 @@ p2_info: bool = false, has_meaningful_data: bool = true, has_meaningful_mtime: bool = true, - parentfiledata: Option<(i32, i32, i32)> = None, + parentfiledata: Option<(u32, u32, u32)> = None, ) -> PyResult<DirstateItem> { let mut mode_size_opt = None; @@ -145,9 +145,9 @@ def set_clean( &self, - mode: i32, - size: i32, - mtime: i32, + mode: u32, + size: u32, + mtime: u32, ) -> PyResult<PyNone> { self.update(py, |entry| entry.set_clean(mode, size, mtime)); Ok(PyNone)