##// 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:

r49807:8848c345 default
r49858:feace6e5 stable
Show More
Cargo.toml
23 lines | 440 B | text/plain | TOMLLexer
Antoine Cezar
rhg: add rhg crate...
r45503 [package]
name = "rhg"
version = "0.1.0"
Raphaël Gomès
rhg: use `format_bytes!` for error messages...
r46598 authors = [
"Antoine Cezar <antoine.cezar@octobus.net>",
"Raphaël Gomès <raphael.gomes@octobus.net>",
]
Antoine Cezar
rhg: add rhg crate...
r45503 edition = "2018"
[dependencies]
Simon Sapin
rhg: Add support for colored output...
r49584 atty = "0.2"
Antoine Cezar
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`...
r45592 hg-core = { path = "../hg-core"}
Simon Sapin
rhg: Add support for the blackbox extension...
r47343 chrono = "0.4.19"
Antoine Cezar
rhg: add a limited `rhg root` subcommand...
r45593 clap = "2.33.1"
Simon Sapin
rust: replace trivial `impl From …` with `#[derive(derive_more::From)]`...
r47164 derive_more = "0.99"
Pulkit Goyal
rhg: read [paths] for `--repository` value...
r48196 home = "0.5.3"
Simon Sapin
rhg: Fall back to Python on --repository with an URL...
r47463 lazy_static = "1.4.0"
Antoine Cezar
rhg: Add debug timing...
r46101 log = "0.4.11"
micro-timer = "0.3.1"
Simon Sapin
rhg: Fall back to Python on --repository with an URL...
r47463 regex = "1.3.9"
Antoine Cezar
rhg: Add debug timing...
r46101 env_logger = "0.7.1"
Simon Sapin
rust: Upgrade to format-bytes 0.3...
r49323 format-bytes = "0.3.0"
Simon Sapin
rhg: Add support for the blackbox extension...
r47343 users = "0.11.0"