refactor: use ergo module to load profile
refactor: CiEventSource gets a reference to a profile instead of owning it
refactor: make Worker::NAME be a static string
refactor: drop Worker::name, now unnecessary
refactor: QueueAdder holds an ergo::Radicle
This still loads the profile, because Worker needs a ’static lifetime and this is the easiest way to achieve that.
refactor: add ergo::Oid export
Use this consistently to reduce confusion between Oid types from Radicle.
17 files changed
+63
-87
82ed0bc0
→
02e259f0
modified src/adapter.rs
@@ -496,13 +496,13 @@ mod test {
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified src/bin/cib.rs
@@ -9,12 +9,12 @@ use std::{
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -193,8 +193,6 @@ struct QueuedCmd {}
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -232,7 +230,7 @@ impl QueuedCmd {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -274,13 +272,11 @@ impl ProcessEventsCmd {
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -334,6 +330,9 @@ impl ProcessEventsCmd {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -346,9 +345,6 @@ enum CibError {
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -394,8 +390,8 @@ impl CibError {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified src/bin/cibtool.rs
@@ -18,12 +18,13 @@ use std::{
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -250,12 +251,12 @@ enum RunSubCmd {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
modified src/bin/cibtoolcmd/cob.rs
@@ -2,9 +2,9 @@ use std::sync::{Arc, Mutex};
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
modified src/bin/cibtoolcmd/event.rs
@@ -130,8 +130,8 @@ impl Leaf for AddEvent {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -365,8 +365,9 @@ pub struct RecordEvents {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -419,7 +420,7 @@ pub struct CiEvents {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -435,7 +436,7 @@ impl Leaf for CiEvents {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/bin/cibtoolcmd/report.rs
@@ -1,4 +1,4 @@
| - | |
| + | |
|
|
|
|
|
@@ -18,14 +18,12 @@ pub struct ReportCmd {
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/ci_event_source.rs
@@ -8,15 +8,15 @@ use crate::{
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -43,7 +43,7 @@ impl CiEventSource {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -54,7 +54,7 @@ impl CiEventSource {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/cob.rs
@@ -15,7 +15,6 @@ use url::Url;
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -25,7 +24,7 @@ use radicle::{
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/ergo.rs
@@ -9,12 +9,13 @@ use std::str::FromStr;
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified src/logger.rs
@@ -8,7 +8,7 @@ use tracing::{Level, debug, error, info, trace, warn};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -17,6 +17,7 @@ use crate::{
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified src/msg.rs
@@ -29,13 +29,13 @@ use radicle::{
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified src/pages.rs
@@ -20,7 +20,6 @@ use time::{OffsetDateTime, macros::format_description};
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -28,6 +27,7 @@ use radicle::{
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -863,7 +863,7 @@ pub struct StatusPage {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -874,13 +874,13 @@ impl StatusPage {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -935,7 +935,7 @@ impl StatusPage {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/queueadd.rs
@@ -1,10 +1,8 @@
| - | |
| - | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -20,6 +18,7 @@ impl QueueAdderBuilder {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -37,13 +36,12 @@ impl QueueAdderBuilder {
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -76,7 +74,7 @@ impl QueueAdder {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -89,8 +87,8 @@ pub enum AdderError {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -101,9 +99,3 @@ pub enum AdderError {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
modified src/run.rs
@@ -2,11 +2,13 @@ use std::fmt;
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/subplot.rs
@@ -10,7 +10,6 @@ use std::{
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -20,6 +19,8 @@ use radicle::{
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified src/util.rs
@@ -17,11 +17,12 @@ use time::{
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -73,10 +74,6 @@ pub fn oid_from_cli_arg(profile: &Profile, rid: RepoId, commit: &str) -> Result<
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -160,9 +157,6 @@ pub fn safely_overwrite<P: AsRef<Path>>(filename: P, data: &[u8]) -> Result<(),
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -216,10 +210,6 @@ pub enum UtilError {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified src/worker.rs
@@ -10,29 +10,23 @@ use crate::logger;
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|