Diviner

Class ArcanistDiffWorkflow

Definedsrc/workflow/ArcanistDiffWorkflow.php:13
GroupWorkflows
ExtendsArcanistBaseWorkflow

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()

returnwild
This method is not documented.

private buildDiffSpecification()

returnwild
This method is not documented.

private buildRevisionFromCommitMessage(ArcanistDifferentialCommitMessage $message)

parametersArcanistDifferentialCommitMessage$message
returnwild
This method is not documented.

private checkRevisionOwnership(array $revision)

parametersarray$revision
returnwild
This method is not documented.

private dispatchWillBuildEvent(array $fields)

parametersarray$fields
returnwild
This method is not documented.

private dispatchWillCreateRevisionEvent(array $fields)

parametersarray$fields
returnwild
This method is not documented.

private formatUsableLogs(array $usable)

parametersarray$usable
returnwild

Format log messages to prefill a diff update.

private generateAffectedPaths()

returnwild
This method is not documented.

protected generateChanges()

returnwild
This method is not documented.

public getArguments()

returnwild
This method is not documented.

public getCommandHelp()

returnwild
This method is not documented.

public getCommandSynopses()

returnwild
This method is not documented.

private getCommitMessageFromCommit($commit)

parameterswild$commit
returnwild
This method is not documented.

private getCommitMessageFromFile($file)

parameterswild$file
returnwild
This method is not documented.

private getCommitMessageFromRevision($revision_id)

parameterswild$revision_id
returnwild
This method is not documented.

private getCommitMessageFromUser()

returnwild
This method is not documented.

private getDefaultCreateFields()

returnwild
This method is not documented.

private getDefaultUpdateMessage()

returnwild
This method is not documented.

public getDiffID()

returnwild
This method is not documented.

private getErrorExcuse($type, $prompt, $history)

parameterswild$type
wild$prompt
wild$history
returnwild
This method is not documented.

private getFileMimeType($data)

parameterswild$data
returnwild
This method is not documented.

private getGitParentLogInfo()

returnwild
This method is not documented.

private getGitUpdateMessage()

returnwild

Retrieve the git messages between HEAD and the last update.

private getLintStatus($lint_result)

parameterswild$lint_result
returnwild
This method is not documented.

private getMercurialUpdateMessage()

returnwild

Retrieve the hg messages between tip and the last update.

private getSkipExcuse($prompt, $history)

parameterswild$prompt
wild$history
returnwild
This method is not documented.

public getTestResults()

returnwild
This method is not documented.

private getUnitStatus($unit_result)

parameterswild$unit_result
returnwild
This method is not documented.

private getUpdateMessage(array $fields, $template = '')

parametersarray$fields
wild$template
returnwild
This method is not documented.

public getWorkflowName()

returnwild
This method is not documented.

public handleServerMessage(PhutilConsoleMessage $message)

parametersPhutilConsoleMessage$message
returnwild
This method is not documented.

public isRawDiffSource()

returnwild
This method is not documented.

private loadActiveLocalCommitInfo()

returnwild
This method is not documented.

private list parseCommitMessagesIntoFields(array $local)

parametersdict$localLocal commit information.
returnlistComplex 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)

parameterswild$paths
returnwild
This method is not documented.

public requiresAuthentication()

returnwild
This method is not documented.

public requiresConduit()

returnwild
This method is not documented.

public requiresRepositoryAPI()

returnwild
This method is not documented.

public requiresWorkingCopy()

returnwild
This method is not documented.

private void resolveDiffPropertyUpdates()

returnvoid

Wait for finishing all diff property updates.

public run()

returnwild
This method is not documented.

private runDiffSetupBasics()

returnwild
This method is not documented.

private runLint()

returnwild
This method is not documented.

private runLintUnit()

returnwild
This method is not documented.

private runRepositoryAPISetup()

returnwild
This method is not documented.

private runUnit()

returnwild
This method is not documented.

private shouldAmend()

returnwild
This method is not documented.

protected shouldOnlyCreateDiff()

returnwild
This method is not documented.

private void updateDiffProperty($name, $data)

parametersstring$nameDiff property name.
string$dataDiff property value.
returnvoid

Update an arbitrary diff property.

private void updateLintDiffProperty()

returnvoid

Update lint information for the diff.

private updateLocalDiffProperty()

returnwild

Update local commit information for the diff.

private void updateUnitDiffProperty()

returnvoid

Update unit test information for the diff.

private uploadFilesForChanges(array $changes)

parametersarray$changes
returnwild
This method is not documented.

private validateCommitMessage(ArcanistDifferentialCommitMessage $message)

parametersArcanistDifferentialCommitMessage$message
returnwild
This method is not documented.