Files
heartwood/radicle-cob/src
Fintan Halpenny b4f2614d6c cob: chronological ordering of concurrent values
The underlying `Dag` for a COB will use the `Ord` implementation of
whatever is provided as the key. This means that the lexicographical
ordering of the `Oid` SHA will be used, which in turn means that if
the SHAs change in our tests, then the ordering will be broken for
concurrent updates.

To prevent this from happening, a variant of the `prune` method is
introduced that takes an ordering of the keys and values – this method
being called `prune_by`.

This allows `prune` to be replaced with `prune_by` in the
`ChangeGraph::evaluate` method. The ordering used is first comparing
the `Entry::timestamp` and then the `EntryId` (`Oid`).
2024-10-23 13:02:55 +01:00
..
2023-04-23 15:20:35 +02:00
2023-10-12 17:32:33 +02:00
2023-04-23 15:20:35 +02:00
2023-09-11 23:25:28 +02:00
2023-11-03 14:17:57 +01:00
2024-08-06 14:37:21 +02:00
2023-09-11 23:25:28 +02:00
2023-04-23 15:20:35 +02:00
2023-05-08 10:36:15 +01:00
2024-03-26 10:03:11 +01:00
2023-10-12 17:32:33 +02:00
2024-02-23 13:56:19 +01:00
2023-05-08 10:36:15 +01:00