cob: Parametrize `cob::Store` with repository type
modified radicle-cli/src/commands/issue.rs
@@ -14,7 +14,7 @@ use radicle::node::{AliasStore, Handle};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -359,8 +359,8 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -544,12 +544,12 @@ fn prompt_issue(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -579,8 +579,8 @@ fn open<G: Signer>(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified radicle-cob/src/lib.rs
@@ -116,9 +116,9 @@ mod tests;
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cob/src/object/collaboration/create.rs
@@ -48,7 +48,7 @@ impl Create {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -57,7 +57,7 @@ pub fn create<S, G>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cob/src/object/collaboration/get.rs
@@ -13,13 +13,13 @@ use super::error;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cob/src/object/collaboration/list.rs
@@ -11,12 +11,12 @@ use super::error;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cob/src/object/collaboration/remove.rs
@@ -13,14 +13,14 @@ use super::error;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cob/src/object/collaboration/update.rs
@@ -49,7 +49,7 @@ pub struct Update {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -58,7 +58,7 @@ pub fn update<S, G>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cob/src/object/storage.rs
@@ -10,7 +10,7 @@ use crate::{ObjectId, TypeName};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cob/src/test/storage.rs
@@ -56,7 +56,7 @@ impl Storage {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob.rs
@@ -9,11 +9,11 @@ pub mod thread;
|
|
|
|
|
|
| - | |
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
modified radicle/src/cob/identity.rs
@@ -17,7 +17,7 @@ use crate::{
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -561,20 +561,23 @@ impl store::Transaction<Proposal> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -672,7 +675,7 @@ impl<'a, 'g> ProposalMut<'a, 'g> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -680,21 +683,24 @@ impl<'a, 'g> Deref for ProposalMut<'a, 'g> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -708,7 +714,7 @@ impl<'a> Proposals<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -728,7 +734,10 @@ impl<'a> Proposals<'a> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/cob/issue.rs
@@ -17,7 +17,7 @@ use crate::cob::thread::{CommentId, Thread};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -331,14 +331,17 @@ impl store::Transaction<Issue> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -457,7 +460,7 @@ impl<'a, 'g> IssueMut<'a, 'g> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -465,12 +468,12 @@ impl<'a, 'g> Deref for IssueMut<'a, 'g> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -485,9 +488,12 @@ pub struct IssueCounts {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -499,7 +505,7 @@ impl<'a> Issues<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -521,7 +527,7 @@ impl<'a> Issues<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/patch.rs
@@ -30,7 +30,6 @@ use crate::identity;
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -1143,20 +1142,23 @@ impl store::Transaction<Patch> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1358,7 +1360,7 @@ impl<'a, 'g> PatchMut<'a, 'g> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1376,21 +1378,24 @@ pub struct PatchCounts {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1406,7 +1411,7 @@ impl<'a> Patches<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1429,7 +1434,7 @@ impl<'a> Patches<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1484,7 +1489,7 @@ impl<'a> Patches<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1531,7 +1536,7 @@ impl<'a> Patches<'a> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/cob/store.rs
@@ -128,21 +128,21 @@ impl Error {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -153,8 +153,10 @@ impl<'a, T> Store<'a, T> {
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
@@ -299,15 +301,16 @@ impl<T: FromHistory> Transaction<T> {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -339,14 +342,15 @@ impl<T: FromHistory> Transaction<T> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle/src/storage.rs
@@ -20,7 +20,7 @@ use crate::git::{refspec::Refspec, PatternString, Qualified, RefError, RefString
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -319,7 +319,7 @@ pub trait WriteStorage: ReadStorage {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -368,6 +368,13 @@ pub trait ReadRepository {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/storage/git.rs
@@ -291,12 +291,6 @@ impl Repository {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|