pub struct PerforceAdapter { /* private fields */ }Expand description
Perforce/Helix Core adapter implementing changelist-based workflow.
Status: UNTESTED — needs validation by a Perforce user.
Implementations§
Trait Implementations§
Source§impl SourceAdapter for PerforceAdapter
impl SourceAdapter for PerforceAdapter
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 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 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 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
Source§fn stage_env(
&self,
_staging_dir: &Path,
config: &VcsAgentConfig,
) -> Result<HashMap<String, String>>
fn stage_env( &self, _staging_dir: &Path, config: &VcsAgentConfig, ) -> Result<HashMap<String, String>>
Produce environment variables to inject into the agent process so it
operates on the staging directory instead of the developer’s real VCS
workspace (v0.13.17.3). Read more
Auto Trait Implementations§
impl Freeze for PerforceAdapter
impl RefUnwindSafe for PerforceAdapter
impl Send for PerforceAdapter
impl Sync for PerforceAdapter
impl Unpin for PerforceAdapter
impl UnsafeUnpin for PerforceAdapter
impl UnwindSafe for PerforceAdapter
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