pub struct SvnAdapter { /* private fields */ }Expand description
SVN adapter implementing Subversion workflow.
Status: UNTESTED — needs validation by an SVN user.
Implementations§
Trait Implementations§
Source§impl SourceAdapter for SvnAdapter
impl SourceAdapter for SvnAdapter
Source§fn prepare(&self, _goal: &GoalRun, _config: &SubmitConfig) -> Result<()>
fn prepare(&self, _goal: &GoalRun, _config: &SubmitConfig) -> Result<()>
Create a working branch/changelist/workspace for this goal Read more
Source§fn commit(
&self,
goal: &GoalRun,
_pr: &DraftPackage,
message: &str,
) -> Result<CommitResult>
fn commit( &self, goal: &GoalRun, _pr: &DraftPackage, message: &str, ) -> Result<CommitResult>
Commit the approved changes from staging Read more
Source§fn open_review(
&self,
_goal: &GoalRun,
_pr: &DraftPackage,
) -> Result<ReviewResult>
fn open_review( &self, _goal: &GoalRun, _pr: &DraftPackage, ) -> Result<ReviewResult>
Open a review request Read more
Source§fn sync_upstream(&self) -> Result<SyncResult>
fn sync_upstream(&self) -> Result<SyncResult>
Sync the local workspace with upstream changes. Read more
Source§fn exclude_patterns(&self) -> Vec<String>
fn exclude_patterns(&self) -> Vec<String>
Patterns to exclude from staging copy (VCS metadata dirs, etc.) Read more
Source§fn revision_id(&self) -> Result<String>
fn revision_id(&self) -> Result<String>
Get the current revision identifier for the working directory. Read more
Source§fn protected_submit_targets(&self) -> Vec<String>
fn protected_submit_targets(&self) -> Vec<String>
Protected submit targets for this adapter (§15 VCS Submit Invariant). Read more
Source§fn verify_not_on_protected_target(&self) -> Result<()>
fn verify_not_on_protected_target(&self) -> Result<()>
Assert the post-
prepare() invariant: the adapter must not be
positioned to commit directly to a protected target (§15). Read moreSource§fn save_state(&self) -> Result<Option<SavedVcsState>>
fn save_state(&self) -> Result<Option<SavedVcsState>>
Save working state before apply operations. Read more
Source§fn restore_state(&self, _state: Option<SavedVcsState>) -> Result<()>
fn restore_state(&self, _state: Option<SavedVcsState>) -> Result<()>
Restore working state after apply operations. Read more
Source§fn current_branch(&self) -> Result<String>
fn current_branch(&self) -> Result<String>
Get the current branch or workspace name. Read more
Source§fn check_review(&self, _review_id: &str) -> Result<Option<ReviewStatus>>
fn check_review(&self, _review_id: &str) -> Result<Option<ReviewStatus>>
Check the status of a review/PR by its review ID (e.g., PR number). Read more
Source§fn merge_review(&self, _review_id: &str) -> Result<MergeResult>
fn merge_review(&self, _review_id: &str) -> Result<MergeResult>
Merge a review/PR into the target branch and sync the local workspace. Read more
Auto Trait Implementations§
impl Freeze for SvnAdapter
impl RefUnwindSafe for SvnAdapter
impl Send for SvnAdapter
impl Sync for SvnAdapter
impl Unpin for SvnAdapter
impl UnsafeUnpin for SvnAdapter
impl UnwindSafe for SvnAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more