storage/refs/sigrefs: migrate reference::Reader to RefReader
modified crates/radicle/src/storage.rs
@@ -436,7 +436,7 @@ impl Deref for Remote {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/refs.rs
@@ -19,7 +19,7 @@ use thiserror::Error;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -80,7 +80,7 @@ impl Refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -98,7 +98,7 @@ impl Refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -116,7 +116,7 @@ impl Refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -349,10 +349,10 @@ pub struct RefsAt {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -426,7 +426,7 @@ impl SignedRefs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -438,7 +438,7 @@ impl SignedRefs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -450,7 +450,7 @@ impl SignedRefs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/refs/sigrefs/read.rs
@@ -16,9 +16,8 @@ use radicle_git_metadata::commit::CommitData;
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
|
|
|
|
|
@@ -129,7 +128,7 @@ impl std::fmt::Display for FeatureLevels {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -305,7 +304,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/refs/sigrefs/read/error.rs
@@ -7,7 +7,7 @@ use radicle_oid::Oid;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -17,7 +17,7 @@ pub enum Read {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -67,7 +67,7 @@ impl fmt::Display for Parent {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/refs/sigrefs/read/test/mock.rs
@@ -14,11 +14,11 @@ use radicle_git_metadata::commit::trailers::OwnedTrailer;
|
|
|
|
|
|
| - | |
|
|
| + | |
|
|
| + | |
|
|
| - | |
|
|
|
|
|
@@ -216,19 +216,30 @@ impl ObjectReader for MockRepository {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/refs/sigrefs/write.rs
@@ -13,7 +13,7 @@ use radicle_git_metadata::commit::{CommitData, headers::Headers, trailers::Owned
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -73,7 +73,7 @@ pub struct SignedRefsWriter<'a, R, S> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -373,7 +373,7 @@ struct HeadReader<'a, 'b, 'c, R, V> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -401,7 +401,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/refs/sigrefs/write/error.rs
@@ -1,6 +1,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -41,7 +42,7 @@ pub enum Tree {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/refs/sigrefs/write/test/mock.rs
@@ -11,8 +11,8 @@ use radicle_oid::Oid;
|
|
|
|
|
|
| - | |
|
|
| + | |
|
|
|
|
|
@@ -249,19 +249,35 @@ impl ObjectReader for MockRepository {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/test/storage.rs
@@ -152,16 +152,29 @@ impl MockRepository {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -174,6 +187,14 @@ impl self::refs::sigrefs::git::reference::Reader for MockRepository {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|