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

r49584:39c447e0 default
r49865:2593873c stable
Show More
config.rs
16 lines | 457 B | application/rls-services+xml | RustLexer
Raphaël Gomès
hg-core: add basic config module...
r46803 // config.rs
//
// Copyright 2020
// Valentin Gatien-Baron,
// Raphaël Gomès <rgomes@octobus.net>
//
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2 or any later version.
//! Mercurial config parsing and interfaces.
mod config;
mod layer;
Simon Sapin
rust: Move config value parsing functions to a new module...
r47344 mod values;
Pulkit Goyal
rhg: read [paths] for `--repository` value...
r48196 pub use config::{Config, ConfigSource, ConfigValueParseError};
Simon Sapin
rhg: Add support for colored output...
r49584 pub use layer::{ConfigError, ConfigOrigin, ConfigParseError};