Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistDiffWorkflow.php
| Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | $arguments = array( | ||||
| 'unit tests. See also %s.', | 'unit tests. See also %s.', | ||||
| '--only'), | '--only'), | ||||
| 'conflicts' => array( | 'conflicts' => array( | ||||
| 'only' => null, | 'only' => null, | ||||
| 'edit' => pht('%s does affect revisions.', '--preview'), | 'edit' => pht('%s does affect revisions.', '--preview'), | ||||
| 'message' => pht('%s does not update any revision.', '--preview'), | 'message' => pht('%s does not update any revision.', '--preview'), | ||||
| ), | ), | ||||
| ), | ), | ||||
| 'plan-changes' => array( | |||||
| 'help' => pht( | |||||
| 'Create or update a revision without requesting a code review.'), | |||||
| 'conflicts' => array( | |||||
| 'only' => pht('%s does not affect revisions.', '--only'), | |||||
| 'preview' => pht('%s does not affect revisions.', '--preview'), | |||||
| ), | |||||
| ), | |||||
| 'encoding' => array( | 'encoding' => array( | ||||
| 'param' => 'encoding', | 'param' => 'encoding', | ||||
| 'help' => pht( | 'help' => pht( | ||||
| 'Attempt to convert non UTF-8 hunks into specified encoding.'), | 'Attempt to convert non UTF-8 hunks into specified encoding.'), | ||||
| ), | ), | ||||
| 'allow-untracked' => array( | 'allow-untracked' => array( | ||||
| 'help' => pht('Skip checks for untracked files in the working copy.'), | 'help' => pht('Skip checks for untracked files in the working copy.'), | ||||
| ), | ), | ||||
| ▲ Show 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | if ($this->shouldOnlyCreateDiff()) { | ||||
| } | } | ||||
| $uri = $result['uri']; | $uri = $result['uri']; | ||||
| echo phutil_console_format( | echo phutil_console_format( | ||||
| " **%s** __%s__\n\n", | " **%s** __%s__\n\n", | ||||
| pht('Revision URI:'), | pht('Revision URI:'), | ||||
| $uri); | $uri); | ||||
| if ($this->getArgument('plan-changes')) { | |||||
| $conduit->callMethodSynchronous( | |||||
| 'differential.createcomment', | |||||
| array( | |||||
| 'revision_id' => $result['revisionid'], | |||||
| 'action' => 'rethink', | |||||
| )); | |||||
| echo pht('Planned changes to the revision.')."\n"; | |||||
| } | |||||
| if ($this->shouldOpenCreatedObjectsInBrowser()) { | if ($this->shouldOpenCreatedObjectsInBrowser()) { | ||||
| $this->openURIsInBrowser(array($uri)); | $this->openURIsInBrowser(array($uri)); | ||||
| } | } | ||||
| } | } | ||||
| echo pht('Included changes:')."\n"; | echo pht('Included changes:')."\n"; | ||||
| foreach ($changes as $change) { | foreach ($changes as $change) { | ||||
| echo ' '.$change->renderTextSummary()."\n"; | echo ' '.$change->renderTextSummary()."\n"; | ||||
| ▲ Show 20 Lines • Show All 2,335 Lines • Show Last 20 Lines | |||||