From 41c2e506bc5161987b0928a6c9e6ac256b6734bf Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Thu, 24 Oct 2024 10:31:23 +0200 Subject: [PATCH] Switch to heartwood master --- Cargo.lock | 65 ++++++++++++++++++++-------- Cargo.toml | 9 ++-- bin/commands/patch/review/builder.rs | 12 +---- 3 files changed, 54 insertions(+), 32 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ddcb3005..245dfecb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -747,6 +747,18 @@ dependencies = [ "libc", ] +[[package]] +name = "escargot" +version = "0.5.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c000f23e9d459aef148b7267e02b03b94a0aaacf4ec64c65612f67e02f525fb6" +dependencies = [ + "log", + "once_cell", + "serde", + "serde_json", +] + [[package]] name = "fastrand" version = "2.0.0" @@ -1625,6 +1637,15 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "qcheck" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b439bd4242da51d62d18c95e6a6add749346756b0d1a587dfd0cc22fa6b5f3f0" +dependencies = [ + "rand", +] + [[package]] name = "quote" version = "1.0.35" @@ -1637,8 +1658,7 @@ dependencies = [ [[package]] name = "radicle" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a818569c11f1bac56f38b002d778ce8ec92e312024b9aebcd68bad5dee6a465" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#0c9a7419dcfd265b6c1efe85c915d126feaef649" dependencies = [ "amplify", "base64", @@ -1654,6 +1674,7 @@ dependencies = [ "multibase", "nonempty", "once_cell", + "qcheck", "radicle-cob", "radicle-crypto", "radicle-git-ext", @@ -1670,8 +1691,7 @@ dependencies = [ [[package]] name = "radicle-cli" version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2eb296daeb53927f63784a9b91b45b3a8d72a4aa327c092787e8724b19b81b8e" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#0c9a7419dcfd265b6c1efe85c915d126feaef649" dependencies = [ "anyhow", "chrono", @@ -1712,12 +1732,13 @@ dependencies = [ [[package]] name = "radicle-cli-test" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df187ee120e2dfc949bfae6b1acbe8b8d815167ba5229a312cdabfeb4952bc27" +version = "0.10.0" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#0c9a7419dcfd265b6c1efe85c915d126feaef649" dependencies = [ + "escargot", "log", "pretty_assertions", + "radicle", "shlex", "snapbox", "thiserror", @@ -1726,8 +1747,7 @@ dependencies = [ [[package]] name = "radicle-cob" version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fac94999d8ffb6e88674bee487b080b69bbc9fb1b439ebfa51481ede1a17b3" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#0c9a7419dcfd265b6c1efe85c915d126feaef649" dependencies = [ "fastrand", "git2", @@ -1745,13 +1765,14 @@ dependencies = [ [[package]] name = "radicle-crypto" version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1d6a67969719841ad06049597006368eb4238ca63a02d20207654dfd1d2d6ad" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#0c9a7419dcfd265b6c1efe85c915d126feaef649" dependencies = [ "amplify", "cyphernet", "ec25519", + "fastrand", "multibase", + "qcheck", "radicle-git-ext", "radicle-ssh", "serde", @@ -1764,8 +1785,7 @@ dependencies = [ [[package]] name = "radicle-dag" version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2a678c3049a88ae6a34dd9f52ea9a5f9f066a0af63466b75cf8c48840303067" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#0c9a7419dcfd265b6c1efe85c915d126feaef649" dependencies = [ "fastrand", ] @@ -1794,11 +1814,19 @@ dependencies = [ "libc", ] +[[package]] +name = "radicle-signals" +version = "0.10.0" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#0c9a7419dcfd265b6c1efe85c915d126feaef649" +dependencies = [ + "crossbeam-channel", + "libc", +] + [[package]] name = "radicle-ssh" version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbee758010fb64482be4b18591fbeb3cbc15b16450d143edf4edb5484c7366c6" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#0c9a7419dcfd265b6c1efe85c915d126feaef649" dependencies = [ "byteorder", "log", @@ -1834,8 +1862,7 @@ dependencies = [ [[package]] name = "radicle-term" version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2cf3256980e3fddcd135f6e755022df8b385b842cdcbbfce059f47e87caec18" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#0c9a7419dcfd265b6c1efe85c915d126feaef649" dependencies = [ "anstyle-query", "anyhow", @@ -1844,7 +1871,7 @@ dependencies = [ "inquire", "libc", "once_cell", - "radicle-signals", + "radicle-signals 0.10.0 (git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master)", "shlex", "termion 3.0.0", "thiserror", @@ -1869,7 +1896,7 @@ dependencies = [ "nom", "radicle", "radicle-cli", - "radicle-signals", + "radicle-signals 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", "radicle-surf", "radicle-term", "ratatui", diff --git a/Cargo.toml b/Cargo.toml index d7de92a1..49cf5aef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,9 +32,12 @@ lazy_static = { version = "1.5.0" } libc = { version = "^0.2" } log = { version = "0.4.19" } nom = { version = "^7.1.0" } -radicle = { version = "0.13.0" } -radicle-term = { version = "0.11.0" } -radicle-cli = { version = "0.11.0" } +# radicle = { version = "0.13.0" } +# radicle-term = { version = "0.11.0" } +# radicle-cli = { version = "0.11.0" } +radicle = { git = "https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git", branch = "master", package = "radicle" } +radicle-term = { git = "https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git", branch = "master", package = "radicle-term" } +radicle-cli = { git = "https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git", branch = "master", package = "radicle-cli" } radicle-surf = { version = "0.22.0" } radicle-signals = { version = "0.10.0" } ratatui = { version = "0.27.0", default-features = false, features = ["all-widgets", "termion"] } diff --git a/bin/commands/patch/review/builder.rs b/bin/commands/patch/review/builder.rs index 35102cf7..9e76777e 100644 --- a/bin/commands/patch/review/builder.rs +++ b/bin/commands/patch/review/builder.rs @@ -489,11 +489,7 @@ impl<'a, G: Signer> ReviewBuilder<'a, G> { opts.patience(true).minimal(true).context_lines(3_u32); let diff = self.diff(&brain.accepted(), &tree, repo, &mut opts)?; - let drafts = DraftStore::new(*signer.public_key(), self.repo).with( - signer.public_key(), - &cob::patch::TYPENAME, - &patch_id, - )?; + let drafts = DraftStore::new(self.repo, *signer.public_key()); let mut patches = cob::patch::Cache::no_cache(&drafts)?; let mut patch = patches.get_mut(&patch_id)?; @@ -529,11 +525,7 @@ impl<'a, G: Signer> ReviewBuilder<'a, G> { Brain::new(self.patch_id, signer.public_key(), base, repo)? }; let diff = self.diff(&brain.accepted, &tree, repo, opts)?; - let drafts = DraftStore::new(*signer.public_key(), self.repo).with( - signer.public_key(), - &cob::patch::TYPENAME, - &patch_id, - )?; + let drafts = DraftStore::new(self.repo, *signer.public_key()); let mut patches = cob::patch::Cache::no_cache(&drafts)?; let mut patch = patches.get_mut(&patch_id)?; let mut queue = ReviewQueue::from(diff);