annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
45378
452ece5654c5 hg-core: remove the `Operation` trait
Antoine Cezar <antoine.cezar@octobus.net>
parents: 45113
diff changeset
1 //! A distinction is made between operations and commands.
452ece5654c5 hg-core: remove the `Operation` trait
Antoine Cezar <antoine.cezar@octobus.net>
parents: 45113
diff changeset
2 //! An operation is what can be done whereas a command is what is exposed by
452ece5654c5 hg-core: remove the `Operation` trait
Antoine Cezar <antoine.cezar@octobus.net>
parents: 45113
diff changeset
3 //! the cli. A single command can use several operations to achieve its goal.
452ece5654c5 hg-core: remove the `Operation` trait
Antoine Cezar <antoine.cezar@octobus.net>
parents: 45113
diff changeset
4
52781
6183949219b2 rhg: implement rhg annotate
Mitchell Kember <mkember@janestreet.com>
parents: 52430
diff changeset
5 mod annotate;
45547
522ec3dc44b9 hg-core: add a `CatRev` operation
Antoine Cezar <antoine.cezar@octobus.net>
parents: 45542
diff changeset
6 mod cat;
45533
b56df13a0450 hg-core: define a `DebugData` `Operation`
Antoine Cezar <antoine.cezar@octobus.net>
parents: 45379
diff changeset
7 mod debugdata;
45379
0f5286ccf82c hg-core: define a `ListTrackedFiles` `Operation`
Antoine Cezar <antoine.cezar@octobus.net>
parents: 45378
diff changeset
8 mod list_tracked_files;
51190
ac3859a8b796 rhg: support rhg status --rev --rev
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents: 50036
diff changeset
9 mod status_rev_rev;
52781
6183949219b2 rhg: implement rhg annotate
Mitchell Kember <mkember@janestreet.com>
parents: 52430
diff changeset
10 pub use annotate::{
6183949219b2 rhg: implement rhg annotate
Mitchell Kember <mkember@janestreet.com>
parents: 52430
diff changeset
11 annotate, AnnotateOptions, AnnotateOutput, ChangesetAnnotation,
6183949219b2 rhg: implement rhg annotate
Mitchell Kember <mkember@janestreet.com>
parents: 52430
diff changeset
12 };
46757
b1f2c2b336ec rhg: `cat` command: print error messages for missing files
Simon Sapin <simon.sapin@octobus.net>
parents: 46514
diff changeset
13 pub use cat::{cat, CatOutput};
51905
69b804c8e09e rust: use new revlog configs in all revlog opening code
Rapha?l Gom?s <rgomes@octobus.net>
parents: 51190
diff changeset
14 pub use debugdata::debug_data;
52064
7c105b953ca4 rust-files: separate the listing of files from a revset and a revision
Rapha?l Gom?s <rgomes@octobus.net>
parents: 51905
diff changeset
15 pub use list_tracked_files::{
7c105b953ca4 rust-files: separate the listing of files from a revset and a revision
Rapha?l Gom?s <rgomes@octobus.net>
parents: 51905
diff changeset
16 list_rev_tracked_files, list_revset_tracked_files, ExpandedManifestEntry,
7c105b953ca4 rust-files: separate the listing of files from a revset and a revision
Rapha?l Gom?s <rgomes@octobus.net>
parents: 51905
diff changeset
17 FilesForRev,
7c105b953ca4 rust-files: separate the listing of files from a revset and a revision
Rapha?l Gom?s <rgomes@octobus.net>
parents: 51905
diff changeset
18 };
52430
bde718849153 rhg: support status --change, including --copies
Mitchell Kember <mkember@janestreet.com>
parents: 52064
diff changeset
19 pub use status_rev_rev::{
bde718849153 rhg: support status --change, including --copies
Mitchell Kember <mkember@janestreet.com>
parents: 52064
diff changeset
20 status_change, status_rev_rev_no_copies, DiffStatus, ListCopies,
bde718849153 rhg: support status --change, including --copies
Mitchell Kember <mkember@janestreet.com>
parents: 52064
diff changeset
21 StatusRevRev,
bde718849153 rhg: support status --change, including --copies
Mitchell Kember <mkember@janestreet.com>
parents: 52064
diff changeset
22 };