sapling/eden/scm/lib/manifest-tree
Muir Manders e24a3a8f0c nativecheckout: improve progress indicator
Summary:
The "Calculating" step corresponds to comparing manifests to determine what files have changed. Previously it was just a spinner with no concept of progress. I've tweaked it to display the current tree depth as we are planning. This gives the user something to derive progress from. Depth refers to the directory depth as the checkout plan breadth-first searches across the current tree and destination tree. The time required to diff the two trees is normally proprotional to the depth of the repo, so this is a decent indicator.

Note that there is no "total" set for the progress bar since the max or average depth of a repo doesn't seem readily available. We can add that in the future to provide a true progress bar.

Reviewed By: andll

Differential Revision: D29948994

fbshipit-source-id: bdb5d7a868345d66b9812c2e56159bbf66e6daff
2021-07-29 16:25:32 -07:00
..
benches types: add helper method for generating repo paths in testutil 2020-01-10 11:12:41 -08:00
src nativecheckout: improve progress indicator 2021-07-29 16:25:32 -07:00
Cargo.toml nativecheckout: improve progress indicator 2021-07-29 16:25:32 -07:00