Mercurial > hg
diff rust/hg-cpython/src/dirstate/dirstate_map.rs @ 47539:84391ddf4c78
dirstate-item: rename the class to DirstateItem
The object is no longer a tuple, so it seems clearer to rename it (and its
associated method)
Differential Revision: https://phab.mercurial-scm.org/D10982
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 04 Jul 2021 22:27:29 +0200 |
parents | 6025353c9c55 |
children | 7a15dea6d303 |
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs Sun Jul 04 02:37:38 2021 +0200 +++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs Sun Jul 04 22:27:29 2021 +0200 @@ -19,7 +19,7 @@ use crate::{ dirstate::copymap::{CopyMap, CopyMapItemsIterator, CopyMapKeysIterator}, - dirstate::make_dirstate_tuple, + dirstate::make_dirstate_item, dirstate::non_normal_entries::{ NonNormalEntries, NonNormalEntriesIterator, }, @@ -98,7 +98,7 @@ .map_err(|e| v2_error(py, e))? { Some(entry) => { - Ok(Some(make_dirstate_tuple(py, &entry)?)) + Ok(Some(make_dirstate_item(py, &entry)?)) }, None => Ok(default) } @@ -370,7 +370,7 @@ .map_err(|e| v2_error(py, e))? { Some(entry) => { - Ok(make_dirstate_tuple(py, &entry)?) + Ok(make_dirstate_item(py, &entry)?) }, None => Err(PyErr::new::<exc::KeyError, _>( py, @@ -548,7 +548,7 @@ let (f, entry) = res.map_err(|e| v2_error(py, e))?; Ok(Some(( PyBytes::new(py, f.as_bytes()), - make_dirstate_tuple(py, &entry)?, + make_dirstate_item(py, &entry)?, ))) } }