Trait RuntimeVcsPort
Source pub trait RuntimeVcsPort {
Show 21 methods
// Required methods
fn vcs_commit(&self, input: CreateCommitInput) -> Result<Commit, RedDBError>;
fn vcs_branch_create(
&self,
input: CreateBranchInput,
) -> Result<Ref, RedDBError>;
fn vcs_branch_delete(&self, name: &str) -> Result<(), RedDBError>;
fn vcs_tag_create(&self, input: CreateTagInput) -> Result<Ref, RedDBError>;
fn vcs_list_refs(
&self,
prefix: Option<&str>,
) -> Result<Vec<Ref>, RedDBError>;
fn vcs_checkout(&self, input: CheckoutInput) -> Result<Ref, RedDBError>;
fn vcs_merge(&self, input: MergeInput) -> Result<MergeOutcome, RedDBError>;
fn vcs_cherry_pick(
&self,
connection_id: u64,
commit: &str,
author: Author,
) -> Result<MergeOutcome, RedDBError>;
fn vcs_revert(
&self,
connection_id: u64,
commit: &str,
author: Author,
) -> Result<Commit, RedDBError>;
fn vcs_reset(&self, input: ResetInput) -> Result<(), RedDBError>;
fn vcs_log(&self, input: LogInput) -> Result<Vec<Commit>, RedDBError>;
fn vcs_diff(&self, input: DiffInput) -> Result<Diff, RedDBError>;
fn vcs_status(&self, input: StatusInput) -> Result<Status, RedDBError>;
fn vcs_lca(&self, a: &str, b: &str) -> Result<Option<String>, RedDBError>;
fn vcs_conflicts_list(
&self,
merge_state_id: &str,
) -> Result<Vec<Conflict>, RedDBError>;
fn vcs_conflict_resolve(
&self,
conflict_id: &str,
resolved: Value,
) -> Result<(), RedDBError>;
fn vcs_resolve_as_of(&self, spec: AsOfSpec) -> Result<u64, RedDBError>;
fn vcs_resolve_commitish(&self, spec: &str) -> Result<String, RedDBError>;
fn vcs_set_versioned(
&self,
collection: &str,
enabled: bool,
) -> Result<(), RedDBError>;
fn vcs_list_versioned(&self) -> Result<Vec<String>, RedDBError>;
fn vcs_is_versioned(&self, collection: &str) -> Result<bool, RedDBError>;
}