# HG changeset patch # User Raphaël Gomès # Date 1670513919 -3600 # Node ID f2e13d8d30e094b8694716cd47644e015a3c7642 # Parent baa4e2c93642743708dc99d30c67131b7013f771 rust-dirstate: trace append/no append to help debugging diff -r baa4e2c93642 -r f2e13d8d30e0 rust/hg-core/src/dirstate_tree/on_disk.rs --- a/rust/hg-core/src/dirstate_tree/on_disk.rs Mon Dec 12 16:38:05 2022 +0100 +++ b/rust/hg-core/src/dirstate_tree/on_disk.rs Thu Dec 08 16:38:39 2022 +0100 @@ -637,6 +637,11 @@ can_append: bool, ) -> Result<(Vec, TreeMetadata, bool, usize), DirstateError> { let append = can_append && dirstate_map.write_should_append(); + if append { + log::trace!("appending to the dirstate data file"); + } else { + log::trace!("creating new dirstate data file"); + } // This ignores the space for paths, and for nodes without an entry. // TODO: better estimate? Skip the `Vec` and write to a file directly?