cob: Add new history type, simplify `Content`
modified radicle-cob/src/backend/git/change.rs
@@ -96,13 +96,14 @@ impl change::Storage for git2::Repository {
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -200,7 +201,7 @@ fn load_contents(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -208,7 +209,7 @@ fn load_contents(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cob/src/change/store.rs
@@ -47,6 +47,7 @@ pub trait Storage {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-cob/src/history.rs
@@ -16,14 +16,17 @@ use crate::pruning_fold;
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
modified radicle-cob/src/history/entry.rs
@@ -7,34 +7,9 @@ use git_ext::Oid;
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-cob/src/object/collaboration/create.rs
@@ -3,7 +3,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -11,6 +11,8 @@ use super::*;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -23,6 +25,7 @@ impl<Author> Create<Author> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-cob/src/object/collaboration/update.rs
@@ -4,8 +4,8 @@
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -14,6 +14,8 @@ use super::error;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -60,6 +62,7 @@ where
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -89,6 +92,7 @@ where
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-cob/src/tests.rs
@@ -6,7 +6,7 @@ use quickcheck::Arbitrary;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -22,7 +22,6 @@ fn roundtrip() {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -31,7 +30,8 @@ fn roundtrip() {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -63,7 +63,8 @@ fn list_cobs() {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -77,7 +78,8 @@ fn list_cobs() {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -103,7 +105,6 @@ fn update_cob() {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -112,7 +113,8 @@ fn update_cob() {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -130,7 +132,8 @@ fn update_cob() {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -170,7 +173,8 @@ fn traverse_cobs() {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -192,7 +196,8 @@ fn traverse_cobs() {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -210,7 +215,7 @@ fn traverse_cobs() {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -220,7 +225,7 @@ fn traverse_cobs() {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob.rs
@@ -9,7 +9,7 @@ pub mod value;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/issue.rs
@@ -135,16 +135,13 @@ impl FromHistory for Issue {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -379,7 +376,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -414,7 +411,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -439,7 +436,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -466,7 +463,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -503,7 +500,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -546,7 +543,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/label.rs
@@ -43,16 +43,13 @@ impl TryFrom<&History> for Label {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -143,7 +140,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/patch.rs
@@ -161,16 +161,13 @@ impl TryFrom<&History> for Patch {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -750,7 +747,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -788,7 +785,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -817,7 +814,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -857,7 +854,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -888,7 +885,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -921,7 +918,7 @@ mod events {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/store.rs
@@ -11,7 +11,7 @@ use crate::cob::shared::Author;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -134,6 +134,7 @@ impl<'a, T: FromHistory> Store<'a, T> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -154,6 +155,7 @@ impl<'a, T: FromHistory> Store<'a, T> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -182,11 +184,7 @@ impl<'a, T: FromHistory> Store<'a, T> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|