Mercurial > public > mercurial-scm > hg-stable
view rust/hg-core/src/operations/mod.rs @ 53003:155e1e8dc055
rust-nodemap: don't compute the error string unless needed
This is... really dumb and costs a ton of performance in a hot loop. It was
75% of a profile for a tip to null p1 node traversal in pure Rust.
I'm at fault, done in 652149ed64f08ee73e8fd2f76aa480ea8820fe08.
I thought clippy had a lint for this, but apparently not?
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Fri, 21 Feb 2025 13:56:11 -0500 |
parents | 6183949219b2 |
children |
line wrap: on
line source
//! A distinction is made between operations and commands. //! An operation is what can be done whereas a command is what is exposed by //! the cli. A single command can use several operations to achieve its goal. mod annotate; mod cat; mod debugdata; mod list_tracked_files; mod status_rev_rev; pub use annotate::{ annotate, AnnotateOptions, AnnotateOutput, ChangesetAnnotation, }; pub use cat::{cat, CatOutput}; pub use debugdata::debug_data; pub use list_tracked_files::{ list_rev_tracked_files, list_revset_tracked_files, ExpandedManifestEntry, FilesForRev, }; pub use status_rev_rev::{ status_change, status_rev_rev_no_copies, DiffStatus, ListCopies, StatusRevRev, };