Class ArcanistDiffWorkflow
Sends changes from your working copy to Differential for code review.
Tasks
Lint and Unit Tests
Commit and Update Messages
Diff Specification
Diff Properties
Unspecified
Methods
private buildCommitMessage()
This method is not documented.
private buildDiffSpecification()
This method is not documented.
private buildRevisionFromCommitMessage(ArcanistDifferentialCommitMessage $message)
| parameters | ArcanistDifferentialCommitMessage | $message | |
| return | wild | | |
This method is not documented.
private checkRevisionOwnership(array $revision)
| parameters | array | $revision | |
| return | wild | | |
This method is not documented.
private dispatchWillBuildEvent(array $fields)
| parameters | array | $fields | |
| return | wild | | |
This method is not documented.
private dispatchWillCreateRevisionEvent(array $fields)
| parameters | array | $fields | |
| return | wild | | |
This method is not documented.
private formatUsableLogs(array $usable)
| parameters | array | $usable | |
| return | wild | | |
Format log messages to prefill a diff update.
private generateAffectedPaths()
This method is not documented.
protected generateChanges()
This method is not documented.
public getArguments()
This method is not documented.
public getCommandHelp()
This method is not documented.
public getCommandSynopses()
This method is not documented.
private getCommitMessageFromCommit($commit)
| parameters | wild | $commit | |
| return | wild | | |
This method is not documented.
private getCommitMessageFromFile($file)
| parameters | wild | $file | |
| return | wild | | |
This method is not documented.
private getCommitMessageFromRevision($revision_id)
| parameters | wild | $revision_id | |
| return | wild | | |
This method is not documented.
private getCommitMessageFromUser()
This method is not documented.
private getDefaultCreateFields()
This method is not documented.
private getDefaultUpdateMessage()
This method is not documented.
public getDiffID()
This method is not documented.
private getErrorExcuse($type, $prompt, $history)
| parameters | wild | $type | |
| wild | $prompt | |
| wild | $history | |
| return | wild | | |
This method is not documented.
private getFileMimeType($data)
| parameters | wild | $data | |
| return | wild | | |
This method is not documented.
private getGitParentLogInfo()
This method is not documented.
private getGitUpdateMessage()
Retrieve the git messages between HEAD and the last update.
private getLintStatus($lint_result)
| parameters | wild | $lint_result | |
| return | wild | | |
This method is not documented.
private getMercurialUpdateMessage()
Retrieve the hg messages between tip and the last update.
private getSkipExcuse($prompt, $history)
| parameters | wild | $prompt | |
| wild | $history | |
| return | wild | | |
This method is not documented.
public getTestResults()
This method is not documented.
private getUnitStatus($unit_result)
| parameters | wild | $unit_result | |
| return | wild | | |
This method is not documented.
private getUpdateMessage(array $fields, $template = '')
| parameters | array | $fields | |
| wild | $template | |
| return | wild | | |
This method is not documented.
public getWorkflowName()
This method is not documented.
public handleServerMessage(PhutilConsoleMessage $message)
| parameters | PhutilConsoleMessage | $message | |
| return | wild | | |
This method is not documented.
public isRawDiffSource()
This method is not documented.
private loadActiveLocalCommitInfo()
This method is not documented.
private list parseCommitMessagesIntoFields(array $local)
| parameters | dict | $local | Local commit information. |
| return | list | | Complex output, see summary. |
Convert a list of commits from getLocalCommitInformation() into
a format usable by arc to create a new diff. Specifically, we emit:
- A dictionary of commit message fields.
- A list of errors encountered while parsing the messages.
- A human-readable list of the commits themselves.
For example, if the user runs "arc diff HEAD^^^" and selects a diff range
which includes several diffs, we attempt to merge them somewhat
intelligently into a single message, because we can only send one
"Summary:", "Reviewers:", etc., field to Differential. We also return
errors (e.g., if the user typed a reviewer name incorrectly) and a
summary of the commits themselves.
protected primeSubversionWorkingCopyData($paths)
| parameters | wild | $paths | |
| return | wild | | |
This method is not documented.
public requiresAuthentication()
This method is not documented.
public requiresConduit()
This method is not documented.
public requiresRepositoryAPI()
This method is not documented.
public requiresWorkingCopy()
This method is not documented.
private void resolveDiffPropertyUpdates()
Wait for finishing all diff property updates.
public run()
This method is not documented.
private runDiffSetupBasics()
This method is not documented.
private runLint()
This method is not documented.
private runLintUnit()
This method is not documented.
private runRepositoryAPISetup()
This method is not documented.
private runUnit()
This method is not documented.
private shouldAmend()
This method is not documented.
protected shouldOnlyCreateDiff()
This method is not documented.
private void updateDiffProperty($name, $data)
| parameters | string | $name | Diff property name. |
| string | $data | Diff property value. |
| return | void | | |
Update an arbitrary diff property.
private void updateLintDiffProperty()
Update lint information for the diff.
private updateLocalDiffProperty()
Update local commit information for the diff.
private void updateUnitDiffProperty()
Update unit test information for the diff.
private uploadFilesForChanges(array $changes)
| parameters | array | $changes | |
| return | wild | | |
This method is not documented.
private validateCommitMessage(ArcanistDifferentialCommitMessage $message)
| parameters | ArcanistDifferentialCommitMessage | $message | |
| return | wild | | |
This method is not documented.