##// END OF EJS Templates
rust-dirstate: panic if the DirstateMap counters go below 0...
rust-dirstate: panic if the DirstateMap counters go below 0 When modifying the API I hit some... interesting errors (trying to allocate 178GB of RAM, for example) because I failed to keep the counters correctly updated. This counter underflow is likely to happen when code is changed around and can have up to eat-your-dirstate level of consequences, which is not nice. The very small runtime cost of checking these counters should really not be an issue and will help us uncover bugs when/if they do appear in the future. Differential Revision: https://phab.mercurial-scm.org/D12430

File last commit:

r48883:3d0a9c6e default
r49865:2593873c stable
Show More
dirstate_tree.rs
5 lines | 99 B | application/rls-services+xml | RustLexer
Simon Sapin
dirstate-tree: Empty shell for a second Rust DirstateMap implementation...
r47865 pub mod dirstate_map;
Simon Sapin
dirstate-v2: Change the on-disk format when the requirement is enabled...
r48055 pub mod on_disk;
Simon Sapin
rust: Make OwningDirstateMap generic and move it into hg-core...
r48766 pub mod owning;
Simon Sapin
dirstate-tree: Add `WithBasename` wrapper for `HgPath`...
r47866 pub mod path_with_basename;
Simon Sapin
rhg: Add support for dirstate-v2...
r48165 pub mod status;