comparison rust/hg-cpython/src/dirstate/dirstate_map.rs @ 52302:db065b33fa56

rust-dirstate: merge `dirstate_tree` module into `dirstate` The historical reasonning for `dirstate_tree` existing in the first place is that a new approach was needed for the tree-like dirstate and it was easier to start somewhat fresh. Now that the former dirstate is (long) gone, we can merge those two modules to avoid the confusion that even the module creators sometimes get.
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 04 Nov 2024 11:00:58 +0100
parents ea0467ed76aa
children b422acba55f1
comparison
equal deleted inserted replaced
52301:7ffc71552662 52302:db065b33fa56
13 use cpython::{ 13 use cpython::{
14 exc, PyBool, PyBytes, PyClone, PyDict, PyErr, PyList, PyNone, PyObject, 14 exc, PyBool, PyBytes, PyClone, PyDict, PyErr, PyList, PyNone, PyObject,
15 PyResult, Python, PythonObject, ToPyObject, UnsafePyLeaked, 15 PyResult, Python, PythonObject, ToPyObject, UnsafePyLeaked,
16 }; 16 };
17 use hg::{ 17 use hg::{
18 dirstate::{ParentFileData, TruncatedTimestamp}, 18 dirstate::dirstate_map::{
19 dirstate_tree::dirstate_map::{
20 DirstateEntryReset, DirstateIdentity as CoreDirstateIdentity, 19 DirstateEntryReset, DirstateIdentity as CoreDirstateIdentity,
21 }, 20 },
21 dirstate::{ParentFileData, TruncatedTimestamp},
22 }; 22 };
23 23
24 use crate::{ 24 use crate::{
25 dirstate::copymap::{CopyMap, CopyMapItemsIterator, CopyMapKeysIterator}, 25 dirstate::copymap::{CopyMap, CopyMapItemsIterator, CopyMapKeysIterator},
26 dirstate::item::DirstateItem, 26 dirstate::item::DirstateItem,
27 pybytes_deref::PyBytesDeref, 27 pybytes_deref::PyBytesDeref,
28 }; 28 };
29 use hg::{ 29 use hg::{
30 dirstate::StateMapIter, dirstate_tree::dirstate_map::DirstateMapWriteMode, 30 dirstate::dirstate_map::DirstateMapWriteMode,
31 dirstate_tree::on_disk::DirstateV2ParseError, 31 dirstate::on_disk::DirstateV2ParseError,
32 dirstate_tree::owning::OwningDirstateMap, revlog::Node, 32 dirstate::owning::OwningDirstateMap, dirstate::StateMapIter, revlog::Node,
33 utils::files::normalize_case, utils::hg_path::HgPath, DirstateEntry, 33 utils::files::normalize_case, utils::hg_path::HgPath, DirstateEntry,
34 DirstateError, DirstateParents, 34 DirstateError, DirstateParents,
35 }; 35 };
36 36
37 // TODO 37 // TODO