mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-28 07:20:11 +00:00
61acee52f4
This patch changes it so that `ReadonlyEvolution` does not lazily calculate its state and the caller, i.e. `ReadonlyRepo`, is instead responsible for the laziness. That will allow the caller to make decisions based on whether the state has been calculated. Specifically, we don't want to calculate the evolution state in order to update it incrementally if it hasn't already been calculated. It's better to just leave it uncalculated in that case. As a result of moving the laziness out of `ReadonlyEvolution`, we also don't need to the reference to `ReadonlyRepo` anymore, which simplifies things a bunch. The next patch will continue by making the corresponding change to `MutableEvolution`, which will let us simplify even more. |
||
---|---|---|
.. | ||
protos | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |