mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
d596d1284a
Summary: Updates native checkout to store which files have already been written in .hg/upgradeprogress. Then enables it to load that file and skip writing those files if they're already on disk and their mtime and size match the previously written values. In theory we could record and check file hashes as well, but that'd likely slow things down quite a bit. Future diffs will add: - Recording and checking the hgid that was written before vs what is about to be written. Just an hgid comparison, not a full hash computation. - Some UX to inform the user when hg checkout can be continued, and possibly to implement 'hg checkout --continue'. Reviewed By: andll Differential Revision: D26830249 fbshipit-source-id: 88a75080966dae5241550ed7eedbc057c65966dd
26 lines
755 B
TOML
26 lines
755 B
TOML
# @generated by autocargo from //eden/scm/lib/checkout:checkout
|
|
[package]
|
|
name = "checkout"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
futures = { version = "0.3.13", features = ["async-await", "compat"] }
|
|
manifest = { path = "../manifest", features = ["for-tests"] }
|
|
parking_lot = "0.10.2"
|
|
pathmatcher = { path = "../pathmatcher" }
|
|
revisionstore = { path = "../revisionstore" }
|
|
tokio = { version = "1.4", features = ["full", "test-util"] }
|
|
tracing = "0.1"
|
|
types = { path = "../types" }
|
|
vfs = { path = "../vfs" }
|
|
|
|
[dev-dependencies]
|
|
manifest-tree = { path = "../manifest-tree", features = ["for-tests"] }
|
|
quickcheck = "0.9"
|
|
rand = { version = "0.7", features = ["small_rng"] }
|
|
rand_chacha = "0.2"
|
|
tempfile = "3.1"
|
|
walkdir = "2.2.9"
|