##// END OF EJS Templates
copies: stop attempt to avoid extra dict copies around branching...
copies: stop attempt to avoid extra dict copies around branching In the python code, we attempt to avoid unnecessary dict copies when gathering copy information. However that logic is wobbly and I keep running into case where independent branches affects each others. With the current code we can't ensure we are the only "user" of dict when dealing with merge. This caused havoc in the next series on tests I am about to introduce. So for now I am disabling the faulty optimisation. I believe we will need a dedicated overlay to deal with the "copy on write logic" to have something correct. I am also hoping to find time to build dedicated test case for this category of problem instead of relying on side effect in other tests. However for now I am focussing on another issue. Differential Revision: https://phab.mercurial-scm.org/D9608

File last commit:

r46751:dca9cb99 default
r46800:cb8b2ee8 default
Show More
mod.rs
23 lines | 781 B | application/rls-services+xml | RustLexer
Antoine Cezar
hg-core: remove the `Operation` trait...
r45917 //! 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.
Antoine Cezar
hg-core: add a `CatRev` operation...
r46112 mod cat;
Antoine Cezar
hg-core: define a `DebugData` `Operation`...
r46098 mod debugdata;
Raphaël Gomès
hg-core: define a `dirstate_status` `Operation`...
r45673 mod dirstate_status;
Antoine Cezar
hg-core: add FindRoot operation to find repository root path...
r45502 mod find_root;
Antoine Cezar
hg-core: define a `ListTrackedFiles` `Operation`...
r45918 mod list_tracked_files;
Simon Sapin
rust: replace most "operation" structs with functions...
r46751 pub use cat::{cat, CatRevError, CatRevErrorKind};
Antoine Cezar
rhg: add a `DebugData` `Command` to prepare the `rhg debugdata` subcommand...
r46099 pub use debugdata::{
Simon Sapin
rust: replace most "operation" structs with functions...
r46751 debug_data, DebugDataError, DebugDataErrorKind, DebugDataKind,
Antoine Cezar
rhg: add a `DebugData` `Command` to prepare the `rhg debugdata` subcommand...
r46099 };
Simon Sapin
rust: replace most "operation" structs with functions...
r46751 pub use find_root::{
find_root, find_root_from_path, FindRootError, FindRootErrorKind,
Antoine Cezar
hg-core: define a `ListTrackedFiles` `Operation`...
r45918 };
Antoine Cezar
hg-core: add a `ListRevTrackedFiles` operation...
r46107 pub use list_tracked_files::{
Simon Sapin
rust: replace most "operation" structs with functions...
r46751 list_rev_tracked_files, FilesForRev, ListRevTrackedFilesError,
Antoine Cezar
hg-core: add a `ListRevTrackedFiles` operation...
r46107 ListRevTrackedFilesErrorKind,
};
Simon Sapin
rust: replace most "operation" structs with functions...
r46751 pub use list_tracked_files::{
Dirstate, ListDirstateTrackedFilesError, ListDirstateTrackedFilesErrorKind,
};