##// END OF EJS Templates
dirstate-v2: actually fix the dirstate-v2 upgrade race...
dirstate-v2: actually fix the dirstate-v2 upgrade race It looks like the previous fix for the dirstate-v2 upgrade race didn't work. The problem is that it only recovers in case the size of the v1 `dirstate` file is smaller than the `v2` one, whereas in real life it's always larger. This commit changes the test to be more realistic, which reveals the crash, and changes the code to fix the crash.

File last commit:

r51576:d39ac346 default
r51616:bfbd84c5 stable
Show More
Cargo.toml
25 lines | 514 B | application/toml | 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>",
]
Raphaël Gomès
rust: move all crates in the main workspace to edition 2021...
r50524 edition = "2021"
Antoine Cezar
rhg: add rhg crate...
r45503
[dependencies]
Raphaël Gomès
rhg: upgrade dependencies...
r49807 atty = "0.2.14"
Antoine Cezar
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`...
r45592 hg-core = { path = "../hg-core"}
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 chrono = "0.4.23"
Raphaël Gomès
rhg: upgrade `clap` dependency...
r50534 clap = { version = "4.0.24", features = ["cargo"] }
Raphaël Gomès
rhg: upgrade dependencies...
r49807 derive_more = "0.99.17"
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 home = "0.5.4"
Simon Sapin
rhg: Fall back to Python on --repository with an URL...
r47463 lazy_static = "1.4.0"
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 log = "0.4.17"
Raphaël Gomès
rust: use `logging_timer` instead of `micro_timer`...
r50808 logging_timer = "1.1.0"
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 regex = "1.7.0"
env_logger = "0.9.3"
Simon Sapin
rust: Upgrade to format-bytes 0.3...
r49323 format-bytes = "0.3.0"
Raphaël Gomès
rust-dependencies: switch from `users` to `whoami`...
r51576 whoami = "1.4"
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 which = "4.3.0"
Raphaël Gomès
rust: upgrade `rayon` dependency...
r51221 rayon = "1.7.0"