ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Martin von Zweigbergk b8e45d196f op heads: add a new trait method combining add and remove of op heads
Consider how one would implment the current `OpHeadsStore` interface
for a cloud-based backend. After `OpHeadsStore::add_op_head()` is
called, the set of op heads temporarily contains two heads (typically)
until `OpHeadsStore::remove_op_head()` is called. That's not invalid,
but it's annoying to have to deal with that state more than
necessary. Also, it's unnecessarily inefficient to send the addition
and removal of op heads as separate RPCs. This patch therefore adds a
`update_op_heads()` method that takes a list of old heads to remove
and a single new head to add. Coming patches will start migrating to
that method.
2023-12-28 09:17:42 -08:00
..
benches
gen-protos
src op heads: add a new trait method combining add and remove of op heads 2023-12-28 09:17:42 -08:00
tests split.rs: stop using DescendantRebaser::new 2023-12-24 19:25:16 -08:00
testutils transaction: take description at end instead of start 2023-12-13 08:12:49 -08:00
Cargo.toml lock: remove byteorder dependency from tests, use fs helper functions 2023-12-23 00:14:17 +09:00
LICENSE